ruby-on-rails – 麻烦安装ruby 1.9.3-p194
发布时间:2020-12-17 03:14:56 所属栏目:百科 来源:网络整理
导读:我在一台单独的机器上对我的应用程序进行了一些编辑,我在heroku上部署到生产,这导致了一些错误,现在突然间我在主机上遇到了一堆错误. 根据命令行,我的问题是我没有安装ruby 1.9.3-p194.我不知道我能做些什么来解决这个问题. $rvm install ruby-1.9.3-p194No
我在一台单独的机器上对我的应用程序进行了一些编辑,我在heroku上部署到生产,这导致了一些错误,现在突然间我在主机上遇到了一堆错误.
根据命令行,我的问题是我没有安装ruby 1.9.3-p194.我不知道我能做些什么来解决这个问题. $rvm install ruby-1.9.3-p194 No binary rubies available for: osx/10.7/x86_64/ruby-1.9.3-p194. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing Ruby from source to: /Users/glider/.rvm/rubies/ruby-1.9.3-p194,this may take a while depending on your cpu(s)... ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194,this may take a while depending on your connection... ruby-1.9.3-p194 - #extracted to /Users/glider/.rvm/src/ruby-1.9.3-p194 (already extracted) ruby-1.9.3-p194 - #configuring Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/Users/glider/.rvm/usr/lib ./configure --enable-shared --disable-install-doc --prefix=/Users/glider/.rvm/rubies/ruby-1.9.3-p194',please read /Users/glider/.rvm/log/ruby-1.9.3-p194/configure.log There has been an error while running configure. Halting the installation. 解决方法
如果您使用railsinstaller.org安装了rails,则/ etc / rvmrc中存在一个错误.打开该文件并将定义rvm_configure_env的单个字符串更改为三个单独的字符串.
这是带有错误的默认代码: rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include') 这是更正后的代码: rvm_configure_env=('LDFLAGS=-L/opt/sm/pkg/active/lib' 'CFLAGS=-I/opt/sm/pkg/active/include' 'CPATH=/opt/sm/pkg/active/include') (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |