Django dev server error: image not found

后端 未结 2 1948
无人及你
无人及你 2021-02-06 16:46

I get the following error trying to run the Django development server. I\'m using OS X 10.8. I also using virtualenv system install package.

(django-env)Glyns-iM         


        
相关标签:
2条回答
  • 2021-02-06 17:19

    Resolved:

    Adding a couple of symbolic links fix this issue for me.

    sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
    
    sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql
    
    0 讨论(0)
  • 2021-02-06 17:29

    In MacOSX "El Capitan" the accepted response does not work because the new restrictions on SIP/rootless policy to prevent access to usr/lib/

    The symbolic links that fix this issue in OSX El Capitan are the following

    sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/local/lib/libmysqlclient.18.dylib
    
    sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql
    
    0 讨论(0)
提交回复
热议问题