在home目录中安装mysql gem(无root访问权限)安装:wheel:invalid argument错误代码67

时间:2012-12-30 13:42:48

标签: ruby rubygems

所以我正在尝试在自定义文件夹中安装宝石,因为它正在与其他宝石一起工作,我无法安装mysql gem。

谷歌搜索没有帮助 错误代码(不完整)以获得更好的聚焦

make install
/usr/bin/install -c -o root -g wheel -m 0755 mysql_api.so /home/user/gems/gems/mysql-        2.9.0/lib/mysql
install: wheel: Invalid argument
*** Error code 67

完全失败的安装过程

[user@mydevil]:<~/fblk>$ ruby19 -S gem install mysql
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/local/bin/rubyruby-19 extconf.rb
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... yes
checking for rb_thread_start_timer()... no
checking for mysql.h... yes
creating Makefile

make
compiling mysql.c
linking shared-object mysql/mysql_api.so

make install
/usr/bin/install -c -o root -g wheel -m 0755 mysql_api.so /home/user/gems/gems/mysql-        2.9.0/lib/mysql
install: wheel: Invalid argument
*** Error code 67

Stop in /usr/home/user/gems/gems/mysql-2.9.0/ext/mysql_api.


Gem files will remain installed in /home/user/gems/gems/mysql-2.9.0 for inspection.
Results logged to /home/user/gems/gems/mysql-2.9.0/ext/mysql_api/gem_make.out

其他一些信息

ruby​​ env

 RubyGems Environment:
- RUBYGEMS VERSION: 1.8.11
- RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [amd64-freebsd9]
- INSTALLATION DIRECTORY: /home/ferski/gems
- RUBY EXECUTABLE: /usr/local/bin/rubyruby-19
- EXECUTABLE DIRECTORY: /home/ferski/gems/bin
- RUBYGEMS PLATFORMS:
 - ruby
 - amd64-freebsd-9
- GEM PATHS:
 - /home/ferski/gems
 - /usr/local/lib/ruby/gems/1.9
- GEM CONFIGURATION:
 - :update_sources => true
 - :verbose => true
 - :benchmark => false
 - :backtrace => false
 - :bulk_threshold => 1000
 - "gemhome" => "/home/ferski/gems"
 - "gempath" => ["/home/ferski/gems", "/usr/local/lib/ruby/gems/1.9"]
- REMOTE SOURCES:
 - http://rubygems.org/

可以使用不同版本的ruby和rubygems吗? 或没有root访问权限?

1 个答案:

答案 0 :(得分:1)

freebsd相关问题
尝试

setenv RB_USER_INSTALL "install -s -m 555"

RB_USER_INSTALL=true gem install mysql