Linux installation with MySQL fails

14 views
Skip to first unread message

Hendrik du Toit

unread,
Feb 4, 2021, 9:58:59 AM2/4/21
to Reahl discuss
pip3 install reahl[declarative,mysql,dev,doc]
...
Collecting mysqlclient<1.4.9999,>=1.3
  Using cached mysqlclient-1.4.6.tar.gz (85 kB)
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0xuqgkzy/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0xuqgkzy/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-0xuqgkzy/mysqlclient/pip-egg-info
         cwd: /tmp/pip-install-0xuqgkzy/mysqlclient/
    Complete output (12 lines):
    /bin/sh: 1: mysql_config: not found
    /bin/sh: 1: mariadb_config: not found
    /bin/sh: 1: mysql_config: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-0xuqgkzy/mysqlclient/setup.py", line 16, in <module>
        metadata, options = get_config()
      File "/tmp/pip-install-0xuqgkzy/mysqlclient/setup_posix.py", line 61, in get_config
        libs = mysql_config("libs")
      File "/tmp/pip-install-0xuqgkzy/mysqlclient/setup_posix.py", line 29, in mysql_config
        raise EnvironmentError("%s not found" % (_mysql_config_path,))
    OSError: mysql_config not found
│    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.







Craig Sparks

unread,
Feb 4, 2021, 10:50:35 AM2/4/21
to reahl-...@googlegroups.com
Hi Hendrik,

for mysql, there are some additional packages you will need to install
first:


sudo apt-get install mysql-client libmysqlclient-dev


Once installed you can reissue your command:


pip3 install reahl[declarative,mysql,dev,doc]


Thanks,

Craig.


On 2/4/21 4:58 PM, Hendrik du Toit wrote:
> pip3 install reahl[declarative,mysql,dev,doc]
Reply all
Reply to author
Forward
0 new messages