Spring doesn't work. [ uninitialized constant Spring::SID::DL ]

前端 未结 3 1761
故里飘歌
故里飘歌 2021-01-19 05:29

I Can\'t run Spring. Here is the error log.

myid-no-MacBook-Pro:myid$ spring
/Users/myid/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/spring-0.0.10/li         


        
3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-19 06:09

    I found out a solution.

    In my case, after changing the c compiler from clang to apple-gcc42 worked perfectly. Here are the commands I used.

    $ rbenv uninstall 1.9.3-p484
    $ which gcc-4.2
    /usr/local/bin/gcc-4.2
    $ CC=/usr/local/bin/gcc-4.2
    $ rbenv install 1.9.3-p484
    $ rbenv rehash
    

    Related link: https://github.com/rails/spring/issues/274

提交回复
热议问题