How to fix error caused by libmysqlclient.15.dylib not being loaded?

前端 未结 4 1629
孤街浪徒
孤街浪徒 2021-01-04 20:12

I\'ve upgraded to Rails 2.2.2 and installed the MySQL 2.7 gem and am seeing this error when I try to run a migration or start the server:

dlopen(/Library/Rub         


        
4条回答
  •  轮回少年
    2021-01-04 21:02

    I had to remove the directory from the old references:

    sudo install_name_tool -change libmysqlclient.18.dylib
        /usr/local/mysql/lib/libmysqlclient.18.dylib
        /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle
    
    sudo install_name_tool -change libmysqlclient.18.dylib 
        /usr/local/mysql/lib/libmysqlclient.18.dylib
        /Library/Ruby/Gems/1.8/gems/mysql-2.7/mysql.bundle
    

提交回复
热议问题