我正在运行一个Amazon实例(uname Perl给出"3.4.43-43.43.amzn1.x86_64"),并尝试设置DBD::mysql以与我的EC2脚本一起使用。
使用cpanm:cpanm --sudo DBD::mysql安装DBD::mysql
这将返回以下日志文件的错误:
You have /usr/bin/unzip Searching DBD::mysql on cpanmetadb ...
--> Working on DBD::mysql Fetching http://www.cpan.org/authors/id/C/CA/CAPTTOFU/
我尝试通过以下方式安装mysql gem
sudo gem install mysql --version 2.7
但是,我得到以下错误:
Building native extensions. This could take a while...
...........
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for mysql_query() in -lmysqlclient... no
check
我一直试图为django项目安装mysql,我正在运行osx 10.10和django=1.7,python2.7,以及虚拟env。当我试图运行pip安装MySQL-python时,会出现以下错误:
You are using pip version 6.0.8, however version 7.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
DEPRECATION: --no-install and --no-download are
我尝试过更新pip并安装不同的包,但是似乎没有什么效果。我不确定我是否必须运行一个命令,以konsole或alacritty,但任何帮助将不胜感激。我用的是软呢帽
sh-5.1$ pip3 install mysql
Defaulting to user installation because normal site-packages is not writeable
Collecting mysql
Using cached mysql-0.0.3-py3-none-any.whl (1.2 kB)
Collecting mysqlclient
Using cached mys
我正在尝试安装我从github派生的rails应用程序的所有依赖项。我需要的宝石之一是gem install mysql2 -v '0.3.11'。但是,我在尝试运行此命令时出现错误。我几乎不知道从哪里开始这个输出:
Robert-Quinns-MacBook-Pro:talk_your_game robertquinn$ gem install mysql2 -v '0.3.11'
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
当我现在尝试使用pip3 install -r requirements.txt时,当我的虚拟服务器(以及我的主机Python版本)不知何故是3.9而不是以前的3.6时,mysqlclient=1.4.6的安装就以这种方式失败了:
Complete output (12 lines):
/bin/sh: mysql_config: command not found
/bin/sh: mariadb_config: command not found
/bin/sh: mysql_config: command not found
Traceback (most recent call las
在通过自制软件更新perl之后,我通过cpanm破坏了我的dbd::mysql安装安装,结果是:
I will use the following settings for compiling and testing:
cflags (mysql_config) = -I/usr/local/Cellar/mysql-connector-
c/6.1.9/include
embedded (guessed ) =
ldflags (guessed ) =
libs (mysql_co
我正在尝试安装mysql-python以便与Django一起使用,但是收到以下错误:
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
我看到其他的问题说这是因为它没有在路上。我的道路是这样的:
/cygdrive/c/Users/ddnm/Documents/skincare/skincare/bin