这个问题在这里已经有了答案:pipinstallmysql-pythonfailswithEnvironmentError:mysql_confignotfound(24个答案)关闭6年前。环境错误:在安装MySQL-python时找不到mysql_config有人可以建议我该怎么做吗?我从我这边做了以下事情:使用pip安装时出现的错误:ubuntu12.04@ubuntu12.04:~$sudopipinstallMySQL-pythonDownloading/unpackingMySQL-pythonDownloadingMySQL-python-1.2.4.zip(113kB):
我正在尝试在我的mac上安装以下软件包,以便在我的本地环境中测试我的API,但到目前为止我还没有成功。https://github.com/spachev/mysql_udf_bundle我试过很多东西,比如:brewinstalllibmysqlclient-dev这产生了以下错误:Error:Noavailableformulawiththename"libmysqlclient-dev"==>Searchingforsimilarlynamedformulae...Error:Nosimilarlynamedformulaefound.==>Searchingtaps...Err
当我针对共享库(例如libphp5.so)运行ldd时,我发现它依赖于libmysqlclient.so.16:$ldd./libphp5.solibmysqlclient.so.16=>/usr/lib/mysql/libmysqlclient.so.16[otherdependenciessnippedout]Arethesedependencyfilenamesandpaths(/usr/lib/mysql/libmysqlclient.so.16)bakedintothesharedlibrarybinary?Oristhispathdeterminedbysomeotherm
当我针对共享库(例如libphp5.so)运行ldd时,我发现它依赖于libmysqlclient.so.16:$ldd./libphp5.solibmysqlclient.so.16=>/usr/lib/mysql/libmysqlclient.so.16[otherdependenciessnippedout]Arethesedependencyfilenamesandpaths(/usr/lib/mysql/libmysqlclient.so.16)bakedintothesharedlibrarybinary?Oristhispathdeterminedbysomeotherm
我正在尝试从源代码构建mysql-connector-c(根据指令here)并静态链接到我的应用程序中的库。但是,我收到以下警告,我想知道是否有人对这是为什么有任何想法:/path/to/lib/libmysqlclient.a(mf_pack.c.o):Infunction`unpack_dirname':mf_pack.c:(.text+0x90b):warning:Using'getpwnam'instaticallylinkedapplicationsrequiresatruntimethesharedlibrariesfromtheglibcversionusedforlin
我正在尝试从源代码构建mysql-connector-c(根据指令here)并静态链接到我的应用程序中的库。但是,我收到以下警告,我想知道是否有人对这是为什么有任何想法:/path/to/lib/libmysqlclient.a(mf_pack.c.o):Infunction`unpack_dirname':mf_pack.c:(.text+0x90b):warning:Using'getpwnam'instaticallylinkedapplicationsrequiresatruntimethesharedlibrariesfromtheglibcversionusedforlin
我下载并遵循了MySQL5.5.8(http://dev.mysql.com/downloads/mysql/)和MySQLdbpython插件的安装说明。(http://sourceforge.net/projects/mysql-python/)当我尝试将MySQLdb导入python终端时,出现以下错误:Safira:~yanigisawa$python--versionPython2.6.1Safira:~yanigisawa$python-c"importMySQLdb"Traceback(mostrecentcalllast):File"",line1,inFile"bu
我下载并遵循了MySQL5.5.8(http://dev.mysql.com/downloads/mysql/)和MySQLdbpython插件的安装说明。(http://sourceforge.net/projects/mysql-python/)当我尝试将MySQLdb导入python终端时,出现以下错误:Safira:~yanigisawa$python--versionPython2.6.1Safira:~yanigisawa$python-c"importMySQLdb"Traceback(mostrecentcalllast):File"",line1,inFile"bu
自从我将OSX升级到10.11后,我不能再将MySQL与我的Rails应用程序一起使用:$railss/Users/josh/.rvm/gems/ruby-2.2.3@a4aa2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in`require':dlopen(/Users/josh/.rvm/gems/ruby-2.2.3@a4aa2/gems/mysql2-0.3.20/lib/mysql2/mysql2.bundle,9):Librarynotloaded:libmysqlclient.18.dy
自从我将OSX升级到10.11后,我不能再将MySQL与我的Rails应用程序一起使用:$railss/Users/josh/.rvm/gems/ruby-2.2.3@a4aa2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in`require':dlopen(/Users/josh/.rvm/gems/ruby-2.2.3@a4aa2/gems/mysql2-0.3.20/lib/mysql2/mysql2.bundle,9):Librarynotloaded:libmysqlclient.18.dy