我想要一种在未连接到 Internet 的 Solaris 10 x86 服务器上安装 Rails 3 的简单方法。我可以下载文件并刻录到 DVD 或内存棒并以这种方式安装。有些包最好,因为并不真正期待从源代码编译。
有人做过这个或看过任何有关如何做到这一点的指南吗?我看过一篇旧帖子(2009),但这并没有真正帮助我。
问候 安迪
最佳答案
假设您需要安装运行 Ruby 和 RoR 3.0 的所有要求。
从 Sun Freeware 获取所有内容是最简单的
依赖项
您需要首先安装 RoR 的这些依赖项。
- Ruby 1.9.2 - ftp://ftp.sunfreeware.com/pub/freeware/intel/10/ruby-1.9.2p0-sol10-x86-local.gz
- 不要从该页面获取 Ruby 1.9.1 - 警告是您不能将 1.9.1 与 Rails 3.0 一起使用。
Ruby 软件包的某些部分可能需要依赖于以下软件包,其中一些软件包默认情况下应该已安装在 Solaris 10 上(例如 zlib、libiconv 和 libintl),但我还没有接触过基本的 Solaris 机器一段时间后,您可能需要下载所有内容以确保:
- OpenSSL - http://www.sunfreeware.com/programlistintel10.html#openssl098
- 还取决于 libgcc_s.so.1
- gdbm - http://www.sunfreeware.com/programlistintel10.html#gdbm
- libiconv - http://www.sunfreeware.com/programlistintel10.html#libiconv
- 取决于下面的 libintl 和 libgcc_s.so.1
- libintl - http://www.sunfreeware.com/programlistintel10.html#libintl
- 取决于下面的 libgcc_s.so.1
- ncurses - http://www.sunfreeware.com/programlistintel10.html#ncurses
- 依赖于上面的 libintl 和 libiconv,以及 libgcc_s.so.1
- libedit - http://www.sunfreeware.com/programlistintel10.html#libedit
- 取决于下面的 libgcc_s.so.1
- tcl - http://www.sunfreeware.com/programlistintel10.html#tcl
- 取决于下面的 tk 和 libgcc_s.so.1
- tk - http://www.sunfreeware.com/programlistintel10.html#tk
- 取决于 xft、xrender、expat、fontconfig、libiconv、libintl、freetype、zlib、libgcc_s.so.1
- zlib - http://www.sunfreeware.com/programlistintel10.html#zlib
- 取决于 libgcc_s.so.1
- xft - http://www.sunfreeware.com/programlistintel10.html#xft
- 取决于 fontconfig、freetype、zlib、xrender、render、expat
- 渲染 - ftp://ftp.sunfreeware.com/pub/freeware/intel/10/render-0.8-sol10-intel-local.gz
- xrender - http://www.sunfreeware.com/programlistintel10.html#xrender
- 伯克利数据库 - http://www.sunfreeware.com/programlistintel10.html#db47
- 取决于 libgcc_s.so.1
- 字体配置 - http://www.sunfreeware.com/programlistintel10.html#fontconfig
- 取决于 freetype、zlib、expat、libiconv、libgcc_s.so.1
- 自由类型 - http://www.sunfreeware.com/programlistintel10.html#freetype
- 依赖于 zlib 和 libgcc_s.so.1
外籍人士 - http://www.sunfreeware.com/programlistintel10.html#expat
- 取决于 libgcc_s.so.1
libgcc_so.so.1 必须位于/usr/local/lib 中,因此您需要安装以下任一版本:
安装软件包
Sun Freeware 的软件包可以在 Solaris 10 中使用 pkgadd
工具安装: http://www.sunfreeware.com/download.html
示例:
To install a file you have downloaded, follow the example here: For example, if you were to download a gzipped package foo-1.00-sol8-sparc-local.gz into directory /tmp, to install this package, you would use the following commands:
cd /tmp
gunzip foo-1.00-sol8-sparc-local.gz
pkgadd -d foo-1.00-sol8-sparc-local
安装 RoR 3
这就是让 Ruby 运行的一切。现在你必须download RoR source and build it
可能会更容易(?)
您可以通过尝试使用来自 Bolthole 的 pkg-get 脚本来简化此依赖关系获取过程:http://www.bolthole.com/solaris/pkg-get.html
该脚本允许您运行仅下载模式来获取包。如果您使用仅下载模式,我认为它不需要您在 Solaris 计算机上运行它,但否则您可能可以稍微修改它以下载而不关心已安装的软件包等。
关于ruby-on-rails - 有人在 Solaris 10x86 上安装了 Rails 3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5145468/