gpt4 book ai didi

ruby-on-rails - rubygems 不适用于 Synology DS209

转载 作者:行者123 更新时间:2023-12-04 23:27:43 25 4
gpt4 key购买 nike

我正在尝试按照 http://wiki.joachimschuster.de/index.php/Install_Ruby_on_Rails_and_Redmine_on_DS210%2B 中的说明在 Synology DS209 上安装 Ruby on Rails .我检查了所有先决条件(除了 redmine 用户,我认为这不是问题),以及 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>

有什么建议?

编辑:
拆卸和重新安装 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.

最佳答案

我也有同样的问题..

gem是一个脚本文件,如果你看到里面,它会像这样调用ruby“#!/opt/bin/ruby”。
让我们看看“/opt/bin/ruby”!!它也是一个调用“#!/opt/bin/ruby”的脚本文件。

没意思啊...

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

我找到了解决方案...
再次安装 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 复制一份,你就会成功。

关于ruby-on-rails - rubygems 不适用于 Synology DS209,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9921256/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com