我正在尝试使用http://wiki.joachimschuster.de/index.php/Install_Ruby_on_Rails_and_Redmine_on_DS210%2B上的说明在我的Synology DS209上安装Ruby on Rails。我检查了所有的前提条件(除了redmine用户,我认为这不是问题所在),并且通过ipkg可以很好地安装rubygems和zlib包。
但是,当我运行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>有什么建议吗?
编辑:删除和重新安装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.发布于 2012-03-31 21:51:07
我也有同样的问题..
gem是一个脚本文件,如果你看到里面,它会像这样调用ruby:"#!/opt/bin/ruby“。让我们看看"/opt/bin/ruby"!它也是一个脚本文件,调用"#!/opt/bin/ruby“。
这是胡说八道。
我认为安装包有一个bug ..到目前为止,我还没有解决的办法。
我找到了解决方案..。再次安装ruby。
ipkg install ruby -force-reinstall在此之后,您就有了二进制ruby文件。
如果您在DSM 4.0上尝试redmine,则安装rails需要libcrypt.so.0.9.8,而您的NAS中没有该文件。使用/usr/lib/libcrypt.so.1.0.0创建一个副本,您就可以创建一个副本。
发布于 2012-10-13 02:39:15
感谢所有的答案,这对Ruby来说已经足够了,但我还需要做更多的工作来安装rails 2.3.5 (我还想在我的DS209+上安装Redmine;我很高兴地报告这对我来说是有效的)。
我尝试了这个(从这个网站:http://ash-ride.blogspot.ca/2010/09/redmine.html) gem install rails -v 2.3.5
但我得到的只是:
ERROR: Error installing rails:
rake requires RubyGems version >= 1.3.2下面是我如何解决并安装rails的:
bingo,在DS209+上使用DSM4.0-2198的rails的工作副本。不确定我是否必须先安装机架,但是,嘿,它正在工作!Redmine的最后一步是安装MySQL连接器并下载RedMine (参见博客参考)。
感谢您在libcrypt.so.0.9.8上的技巧。在将libssl.so.1.0.0复制到libssl.so.0.9.8 (数据库脚本所需)时,我必须执行相同的操作。
https://stackoverflow.com/questions/9921256
复制相似问题