ruby-on-rails – make:execvp:g:权限被拒绝
发布时间:2020-12-17 03:40:58 所属栏目:百科 来源:网络整理
导读:我正在尝试在Amazon Linux AMI(~cenOS)上安装therubyracer. [www@ip-10-0-0-125 root]$gem install therubyracerFetching: libv8-3.16.14.3-x86_64-linux.gem (100%)Successfully installed libv8-3.16.14.3-x86_64-linuxBuilding native extensions. This c
我正在尝试在Amazon
Linux AMI(~cenOS)上安装therubyracer.
[www@ip-10-0-0-125 root]$gem install therubyracer Fetching: libv8-3.16.14.3-x86_64-linux.gem (100%) Successfully installed libv8-3.16.14.3-x86_64-linux Building native extensions. This could take a while... ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. /home/www/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb checking for main() in -lpthread... yes creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling handles.cc make: execvp: g++: Permission denied make: *** [handles.o] Error 127 Permission denied @ dir_chdir - /root Gem files will remain installed in /home/www/.rvm/gems/ruby-2.1.1/gems/therubyracer-0.12.1 for inspection. Results logged to /home/www/.rvm/gems/ruby-2.1.1/extensions/x86_64-linux/2.1.0/therubyracer-0.12.1/gem_make.out [www@ip-10-0-0-125 root]$ 我不知道该尝试什么..我正在使用gem install therubyracer在服务器上手动安装它.我先尝试过libv8,许多不同的版本和版本组合. 我在?目录中的www用户下运行它. 谢谢 解决方法
你还没有在你的系统上安装g(GNU C编译器)…这使编译很难:-).
我没有方便的centos副本,但像sudo yum install g这样的东西可能会让你得到一个编译器. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |