ruby-on-rails – 麻烦安装ruby 1.9.3-p194

ruby-on-rails – 麻烦安装ruby 1.9.3-p194,第1张

概述我在一台单独的机器上对我的应用程序进行了一些编辑,我在heroku上部署到生产,这导致了一些错误,现在突然间我在主机上遇到了一堆错误. 根据命令行,我的问题是我没有安装ruby 1.9.3-p194.我不知道我能做些什么来解决这个问题. $rvm install ruby-1.9.3-p194No binary rubies available for: osx/10.7/x86_64/ruby 我在一台单独的机器上对我的应用程序进行了一些编辑,我在heroku上部署到生产,这导致了一些错误,现在突然间我在主机上遇到了一堆错误.

根据命令行,我的问题是我没有安装ruby 1.9.3-p194.我不知道我能做些什么来解决这个问题.

$rvm install ruby-1.9.3-p194No 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 - #configuringError 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.logThere 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')
总结

以上是内存溢出为你收集整理的ruby-on-rails – 麻烦安装ruby 1.9.3-p194全部内容,希望文章能够帮你解决ruby-on-rails – 麻烦安装ruby 1.9.3-p194所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1293927.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-10
下一篇 2022-06-10

发表评论

登录后才能评论

评论列表(0条)

保存