rubygems无法在Synology DS209上运行

blo*_*aal 4 rubygems ruby-on-rails nas

我想使用的说明,我的Synology DS209导轨安装Ruby http://wiki.joachimschuster.de/index.php/Install_Ruby_on_Rails_and_Redmine_on_DS210%2B.我已经检查了所有的先决条件(除了redmine-user,我认为这不是问题),并且rubygemszlib软件包安装就好了ipkg.

但是,当我运行时gem,我收到以下错误:

DiskStation> gem
/opt/bin/gem: line 8: require: not found
/opt/bin/gem: line 9: require: not found
/opt/bin/gem: line 10: require: not found
/opt/bin/gem: line 12: required_version: not found
/opt/bin/gem: line 14: unless: not found
/opt/bin/gem: line 15: abort: not found
/opt/bin/gem: line 16: end: not found
/opt/bin/gem: line 21: syntax error: unexpected "("
DiskStation>
Run Code Online (Sandbox Code Playgroud)

有什么建议?

编辑:删除并重新安装rubygems显示以下内容:

DiskStation> ipkg remove -force-removal-of-dependent-packages ruby
Removing package rubygems from root...
Removing package ruby from root...
Successfully terminated.
DiskStation> ipkg install rubygems
Installing rubygems (1.1.1-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/rubygems_1.1.1-1_arm.ipk
Installing ruby (1.9.1.243-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ruby_1.9.1.243-1_arm.ipk
Configuring apache
update-alternatives: Linking //opt/sbin/htpasswd to /opt/sbin/apache-htpasswd
update-alternatives: Linking //opt/sbin/httpd to /opt/sbin/apache-httpd
httpd: Syntax error on line 75 of /opt/etc/apache2/httpd.conf: Cannot load     /opt/libexec/mod_ext_filter.so into server: /opt/libexec/mod_ext_filter.so: undefined symbol: apr_procattr_limit_set
httpd: Syntax error on line 75 of /opt/etc/apache2/httpd.conf: Cannot load /opt/libexec/mod_ext_filter.so into server: /opt/libexec/mod_ext_filter.so: undefined symbol: apr_procattr_limit_set
postinst script returned status 1
ERROR: apache.postinst returned 1
Configuring ruby
Configuring rubygems
Successfully terminated.
Run Code Online (Sandbox Code Playgroud)

Jef*_*rey 7

我也有同样的问题..

gem是一个脚本文件,如果你看到里面,就会调用ruby,就像这样的"#!/ opt/bin/ruby​​".我们来看看"/ opt/bin/ruby​​"!! 它也是一个调用"#!/ opt/bin/ruby​​"的脚本文件.

这是无意义的......

我认为有一个错误安装包..到目前为止,我没有解决方案......

我找到了解决办法......再次安装红宝石.

ipkg install ruby -force-reinstall
Run Code Online (Sandbox Code Playgroud)

在此之后,你有二进制ruby文件.

如果你在DSM 4.0上尝试redmine,安装rails需要libcrypto.so.0.9.8,它不在你的NAS中.使用/usr/lib/libcrypto.so.1.0.0制作副本,然后就可以了.