所以我得到了一台smartos 64 plus机器(joyent)
它没有安装rails,因为我得到了
Could not find gem 'rdoc (~> 3.4)', required by 'rails (= 3.0.9)', in any of the sources尝试运行rails应用程序时出错(通过rails % s)
因此我通过以下方式安装rails
sudo gem install rails我得到了一个错误:
make: gcc: Command not found它还说(当我尝试下载源代码并手动编译时)
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking target system type... i386-pc-solaris2.11
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/apps/ruby-1.9.3-p125':
configure: error: no acceptable C compiler found in $PATH顺便说一句,我也尝试了一下smartos packager
pkgin in ruby19-rails-3.0.9我有点困惑,因为SmartOS plus版本应该已经预装了大部分功能!
发布于 2012-02-26 01:56:30
看起来你可能要手工做这个gcc了。This post有一些关于它的信息。pkgin install gcc-compiler gcc-runtime gcc-tools-0是他们建议的命令。
发布于 2012-10-17 05:13:54
要允许Ruby Gems构建本地二进制包,您需要安装GCC和Make。看起来,默认情况下,GCC不在机器上。
pkgin install gcc47 gmake
gem install <your gem>https://stackoverflow.com/questions/9446405
复制相似问题