Go to this site to download the package according to the python version. And use pip install filename like i have python 3.7.1 and download the file in red circle and open terminal where file downloaded and install that file e.g pip install mysqlclient-1.4.4-cp37-cp37m-win32.whl. Linux下用C语言写MySQL程序,用如下命令编译时出错: xitong@localhost mysql$ gcc -o mysql mysql.c -lmysqlcl.
- Share:
- Please consider sharing 🙏
- Published At:
- Dec 11th, 2020
- Tags:
- #ruby, #rails, #mysql, #gem
- Next:
- Ruby's Shovel Method: Digging Deeper
- Previous:
- Webpacker 6: Tutorial Setup
I’ve come across this error several times throughout my development career so I figured it was finally time to write it down.
The stack trace line saying `ld: library not found for -lssl` will give you the hint about what information is missing (ssl lib not found). The problem is that a library is missing. As you can see on this line. Ld: library not found for -lssl This is how we solved it. Step 1: Double-check if openssl is installed and install it if not. Brew install openssl. Step 2: Check if you use bash/zsh/fish or whatever and identify the config file. He is using zsh on mac so the file is /.zshrc.
Scenario
Res2dinv full version crack. Whenever I try to install certain versions of the mysql2
gem in a Ruby on Rails application, I get the following error:
Solution
In order to fix this issue on macOS, first make sure that you have cmake
installed.
Then you can install the gem via the following command: Busy accounting software free. download full version 3.9 with crack.
Hope this helps save someone some time!
View All ArticlesDate: October 28, 2007 10:36AM
I've tried the mentioned method, but it doesn't seem to be working for me.
When i run 'python setup.py build', after editing the '_mysql.c' file, I get:
$python setup.py build
running build
running build_py
creating build
creating build/lib.macosx-10.5-ppc-2.5
copying _mysql_exceptions.py -> build/lib.macosx-10.5-ppc-2.5
creating build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/__init__.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb
creating build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.5-ppc-2.5/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.5-ppc-2.5
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -pipe -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.5-ppc-2.5/_mysql.o -Os -arch ppc -fno-common
gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-ppc-2.5/_mysql.o -L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lm -o build/lib.macosx-10.5-ppc-2.5/_mysql.so
ld: library not found for -lmysqlclient_r
collect2: ld returned 1 exit status
ld: library not found for -lmysqlclient_r
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/t8/t8u1GUW6GN8KS24sFWb-IU+++TI/-Tmp-//ccLjJt3J.out (No such file or directory)
error: command 'gcc' failed with exit status 1
Any else had that problem ?
Can it be because I'm using a PowerBook, and not an Intel Mac?
- Jesper
UPDATE:
Seems it was kind of the same solution as mentioned, except I had to do:
sudo cp /usr/local/mysql/lib/libmysqlclient* /usr/local/mysql/lib/mysql/
before I did a build, and then it works just fine.
Edited 1 time(s). Last edit at 10/29/2007 07:28AM by Jesper Kückelhahn.
Ld Library Not Found For Lssl
Ld Library Not Found For Lssl Mac Mysql Command
Madcap flare 8 keygen generator. Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.