ruby-on-rails – ruby??gems无法在Synology DS209上运行
发布时间:2020-12-17 02:54:10 所属栏目:百科 来源:网络整理
导读:我正在尝试使用 http://wiki.joachimschuster.de/index.php/Install_Ruby_on_Rails_and_Redmine_on_DS210%2B中的说明在我的Synology DS209上安装Ruby on Rails.我检查了所有的前提条件(除了redmine-user,我认为这不是问题),并且rubygems和zlib包安装通过ipkg
我正在尝试使用
http://wiki.joachimschuster.de/index.php/Install_Ruby_on_Rails_and_Redmine_on_DS210%2B中的说明在我的Synology DS209上安装Ruby on Rails.我检查了所有的前提条件(除了redmine-user,我认为这不是问题),并且rubygems和zlib包安装通过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> 有什么建议? 编辑: 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. 解决方法
我也有同样的问题..
gem是一个脚本文件,如果你看到里面,就会调用ruby,就像这样的“#!/ opt / bin / ruby??”. 这是无意义的…… 我认为有一个错误安装包..到目前为止,我没有解决方案…… 我找到了解决方案 ipkg install ruby -force-reinstall 在此之后,你有二进制ruby文件. 如果你在DSM 4.0上尝试redmine,安装rails需要libcrypto.so.0.9.8,它不在你的NAS中.使用/usr/lib/libcrypto.so.1.0.0制作副本,然后就可以了. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |