Mac OSX Lion and Ruby - [FATAL] failed to allocate memory

前端 未结 3 1029
谎友^
谎友^ 2020-12-19 02:03

I have serious problem with Ruby and OSX Lion - whenever I try to start Rails or even a rake tool I am getting this error:

[FATAL] failed to allocate memory
         


        
3条回答
  •  长情又很酷
    2020-12-19 02:09

    I had a conflicting package mysql-connector-c from homebrew installed. mysql2 used the dylib from this package and not from the mysql install. Removing the homebrew package yielded another problem, which could be solved by adding

    export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/usr/local/mysql/lib/"
    

    to my environment.

提交回复
热议问题