Rishabh04-02 / Libreswan-managing-interface

Managing Interface for Libreswan VPN software.
https://libreswan.org/wiki/Libreswan_Managing_Interface
GNU General Public License v2.0
15 stars 10 forks source link

Using cached mysqlclient-2.0.1.tar.gz (87 kB) ERROR: Command errored out with exit status 1: #1

Closed reinethernal closed 4 years ago

reinethernal commented 4 years ago

image

Rishabh04-02 commented 4 years ago

@reinethernal Did you follow these Installation Instructions

Are you using pip instead of pip3?

Please post the complete log(and the order of commands executed), the screenshot is not very helpful.

reinethernal commented 4 years ago

I tried to use it step by step, but.... no result. Yes, i am using pip3.

pip3 install mysqlclient result ``` [root@sk-av ~]# python3 -V Python 3.6.8 [root@sk-av ~]# pipx install virtualenv -bash: pipx: command not found [root@sk-av ~]# pip3 install virtualenv Requirement already satisfied: virtualenv in /usr/local/lib/python3.6/site-packages (16.7.9) [root@sk-av ~]# pip3 -V pip 20.1.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6) [root@sk-av ~]# virtualenv --version 16.7.9 [root@sk-av ~]# yum install python36-setuptools Loaded plugins: elrepo, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. [elrepo]: 39 kmod packages excluded due to dependency errors Package python3-setuptools-39.2.0-10.el7.noarch already installed and latest version Nothing to do [root@sk-av ~]# cd Libreswan-managing-interface [root@sk-av Libreswan-managing-interface]# virtualenv librenv Using base prefix '/usr' No LICENSE.txt / LICENSE found in source New python executable in /root/Libreswan-managing-interface/librenv/bin/python3.6 Not overwriting existing python script /root/Libreswan-managing-interface/librenv/bin/python (you must use /root/Libreswan-managing-interface/librenv/bin/python3.6) Installing setuptools, pip, wheel... done. [root@sk-av Libreswan-managing-interface]# source librenv/bin/activate (librenv) [root@sk-av Libreswan-managing-interface]# pip3 install django==2.0.6 Requirement already satisfied: django==2.0.6 in ./librenv/lib/python3.6/site-packages (2.0.6) Requirement already satisfied: pytz in ./librenv/lib/python3.6/site-packages (from django==2.0.6) (2020.1) (librenv) [root@sk-av Libreswan-managing-interface]# python Python 3.6.8 (default, Apr 2 2020, 13:34:55) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> django.VERSION (2, 0, 6, 'final', 0) >>> KeyboardInterrupt >>> [1]+ Stopped python (librenv) [root@sk-av Libreswan-managing-interface]# pip3 install mysqlclient Collecting mysqlclient Using cached mysqlclient-2.0.1.tar.gz (87 kB) Building wheels for collected packages: mysqlclient Building wheel for mysqlclient (setup.py) ... error ERROR: Command errored out with exit status 1: command: /root/Libreswan-managing-interface/librenv/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bvepbtc6/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bvepbtc6/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-trw2i79u cwd: /tmp/pip-install-bvepbtc6/mysqlclient/ Complete output (29 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/release.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/times.py -> build/lib.linux-x86_64-3.6/MySQLdb creating build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants running build_ext building 'MySQLdb._mysql' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/MySQLdb gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(2,0,1,'final',0) -D__version__=2.0.1 -I/usr/include/mysql -I/usr/include/mysql/mysql -I/usr/include/python3.6m -c MySQLdb/_mysql.c -o build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o gcc -pthread -shared -Wl,-z,relro -g build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o -L/usr/lib64/ -L/usr/lib64 -lmariadb -lpython3.6m -o build/lib.linux-x86_64-3.6/MySQLdb/_mysql.cpython-36m-x86_64-linux-gnu.so /usr/bin/ld: cannot find -lmariadb collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for mysqlclient Running setup.py clean for mysqlclient Failed to build mysqlclient Installing collected packages: mysqlclient Running setup.py install for mysqlclient ... error ERROR: Command errored out with exit status 1: command: /root/Libreswan-managing-interface/librenv/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bvepbtc6/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bvepbtc6/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-xm2hhlv9/install-record.txt --single-version-externally-managed --compile --install-headers /root/Libreswan-managing-interface/librenv/include/site/python3.6/mysqlclient cwd: /tmp/pip-install-bvepbtc6/mysqlclient/ Complete output (29 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/release.py -> build/lib.linux-x86_64-3.6/MySQLdb copying MySQLdb/times.py -> build/lib.linux-x86_64-3.6/MySQLdb creating build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.6/MySQLdb/constants running build_ext building 'MySQLdb._mysql' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/MySQLdb gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(2,0,1,'final',0) -D__version__=2.0.1 -I/usr/include/mysql -I/usr/include/mysql/mysql -I/usr/include/python3.6m -c MySQLdb/_mysql.c -o build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o gcc -pthread -shared -Wl,-z,relro -g build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o -L/usr/lib64/ -L/usr/lib64 -lmariadb -lpython3.6m -o build/lib.linux-x86_64-3.6/MySQLdb/_mysql.cpython-36m-x86_64-linux-gnu.so /usr/bin/ld: cannot find -lmariadb collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /root/Libreswan-managing-interface/librenv/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bvepbtc6/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bvepbtc6/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-xm2hhlv9/install-record.txt --single-version-externally-managed --compile --install-headers /root/Libreswan-managing-interface/librenv/include/site/python3.6/mysqlclient Check the logs for full command output. (librenv) [root@sk-av Libreswan-managing-interface]# > ```
reinethernal commented 4 years ago

Solved a problem by running these commands:

sudo yum install -y python36-devel mysql-devel gcc

sudo ln -s /usr/lib64/libmariadbclient.a /usr/lib64/libmariadb.a

pip install mysqlclient