Please install mysql adapter 'gem install activerecord-mysql-adapter'

前端 未结 16 1498
挽巷
挽巷 2020-12-28 12:23

I\'m having trouble finding a solution to this problem. I\'m getting the error:

Please install the mysql adapter: \'gem install activerecord-mysql-adapter\'
         


        
16条回答
  •  猫巷女王i
    2020-12-28 12:52

    For a old rails 2.3.18 ruby 1.8.7 app that I 'migrated' to a new MacBook (High Sierra - 10.13.6), in order to get the app to run (using POW) and to use script/console, I had to disable SIP and create a link to a file in /urs/lib/ directory. Migration Assistant was unable to create the link because of SIP.

    To Disable SIP - System Integrity Protection

    1. Boot into Mac OS Recovery Mode as usual by holding down the Command and R keys during system start.

    2. Choose the language as usual (if applicable)

    3. At the “MacOS Utilities” screen, pull down the “Utilities” menu from the top of the screen.

    4. In terminal, type command: csrutil disable

    5. Restart your computer

    Finally, after restarting, in Terminal enter this command:

    sudo ln /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib

提交回复
热议问题