Berikut cara Install Ruby On Rails & Ruby Gems pada cPanel server. Login SSH Server & ketikkan command berikut:
/scripts/installruby
[bash]
root@server5 [~]# /scripts/installruby
..
..
gcc -I. -I../.. -I../../. -I../.././ext/zlib -DHAVE_ZLIB_H -DOS_CODE=OS_UNIX -fPIC -g -O2 -fPIC -c zlib.c
gcc -shared -o ../../.ext/x86_64-linux/zlib.so zlib.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby -lz -lrt -ldl -lcrypt -lm -lc
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
gmake[1]: Leaving directory `/home/cprubybuild/ruby-1.8.7-p334/ext/zlib'
making ruby
gmake[1]: Entering directory `/home/cprubybuild/ruby-1.8.7-p334'
gcc -g -O2 -fPIC -DRUBY_EXPORT -D_GNU_SOURCE=1 -L. -rdynamic -Wl,-export-dynamic main.o -Wl,-R -Wl,/usr/lib -L/usr/lib -lruby -lrt -ldl -lcrypt -lm -o ruby
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
gmake[1]: Leaving directory `/home/cprubybuild/ruby-1.8.7-p334'
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./instruby.rb --make="gmake" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc"
installing binary commands
installing command scripts
installing library scripts
installing headers
installing manpages
installing extension objects
installing extension scripts
Removing source directory /home/cprubybuild
Installing rubygems version: 1.3.7
Using Dir: /home/cprubygemsbuild/rubygems-1.3.7
Setting up rubygems ...
RubyGems 1.3.7 installed
=== 1.3.7 / 2010-05-13
NOTE:
http://rubygems.org is now the default source for downloading gems.
You may have sources set via ~/.gemrc, so you should replace
http://gems.rubyforge.org with http://rubygems.org
http://gems.rubyforge.org will continue to work for the forseeable future.
New features:
* `gem` commands
* `gem install` and `gem fetch` now report alternate platforms when a
matching one couldn't be found.
* `gem contents` --prefix is now the default as specified in --help. Bug
#27211 by Mamoru Tasaka.
* `gem fetch` can fetch of old versions again. Bug #27960 by Eric Hankins.
* `gem query` and friends output now lists platforms. Bug #27856 by Greg
Hazel.
* `gem server` now allows specification of multiple gem dirs for
documentation. Bug #27573 by Yuki Sonoda.
* `gem unpack` can unpack gems again. Bug #27872 by Timothy Jones.
* `gem unpack` now unpacks remote gems.
* --user-install is no longer the default. If you really liked it, see
Gem::ConfigFile to learn how to set it by default. (This change was made
in 1.3.6)
* RubyGems now has platform support for IronRuby. Patch #27951 by Will Green.
Bug fixes:
* Require rubygems/custom_require if --disable-gem was set. Bug #27700 by
Roger Pack.
* RubyGems now protects against exceptions being raised by plugins.
* rubygems/builder now requires user_interaction. Ruby Bug #1040 by Phillip
Toland.
* Gem::Dependency support #version_requirements= with a warning. Fix for old
Rails versions. Bug #27868 by Wei Jen Lu.
* Gem::PackageTask depends on the package dir like the other rake package
tasks so dependencies can be hooked up correctly.
------------------------------------------------------------------------------
RubyGems installed the following executables:
/usr/bin/gem
Removing source directory /home/cprubygemsbuild
gem system update ...
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.8.24
Updating RubyGems to 1.8.24
Installing RubyGems 1.8.24
RubyGems 1.8.24 installed
== 1.8.24 / 2012-04-27
* 1 bug fix:
* Install the .pem files properly. Fixes #320
* Remove OpenSSL dependency from the http code path
------------------------------------------------------------------------------
RubyGems installed the following executables:
/usr/bin/gem
gem system update complete.
Installing rails...
Fetching: rake-0.9.2.2.gem (100%)
Fetching: activesupport-2.3.14.gem (100%)
Fetching: activerecord-2.3.14.gem (100%)
Fetching: rack-1.1.3.gem (100%)
Fetching: actionpack-2.3.14.gem (100%)
Fetching: actionmailer-2.3.14.gem (100%)
Fetching: activeresource-2.3.14.gem (100%)
Fetching: rails-2.3.14.gem (100%)
Successfully installed rake-0.9.2.2
Successfully installed activesupport-2.3.14
Successfully installed activerecord-2.3.14
Successfully installed rack-1.1.3
Successfully installed actionpack-2.3.14
Successfully installed actionmailer-2.3.14
Successfully installed activeresource-2.3.14
Successfully installed rails-2.3.14
8 gems installed
Installing ri documentation for rake-0.9.2.2...
Installing ri documentation for activesupport-2.3.14...
Installing ri documentation for activerecord-2.3.14...
Installing ri documentation for rack-1.1.3...
Installing ri documentation for actionpack-2.3.14...
Installing ri documentation for actionmailer-2.3.14...
Installing ri documentation for activeresource-2.3.14...
Installing ri documentation for rails-2.3.14...
Installing RDoc documentation for rake-0.9.2.2...
Installing RDoc documentation for activesupport-2.3.14...
Installing RDoc documentation for activerecord-2.3.14...
Installing RDoc documentation for rack-1.1.3...
Installing RDoc documentation for actionpack-2.3.14...
Installing RDoc documentation for actionmailer-2.3.14...
Installing RDoc documentation for activeresource-2.3.14...
Installing RDoc documentation for rails-2.3.14...
Fetching: gem_plugin-0.2.3.gem (100%)
Fetching: daemons-1.1.8.gem (100%)
Fetching: fastthread-1.0.7.gem (100%)
Building native extensions. This could take a while...
Fetching: cgi_multipart_eof_fix-2.5.0.gem (100%)
Fetching: mongrel-1.1.5.gem (100%)
Building native extensions. This could take a while...
Successfully installed gem_plugin-0.2.3
Successfully installed daemons-1.1.8
Successfully installed fastthread-1.0.7
Successfully installed cgi_multipart_eof_fix-2.5.0
Successfully installed mongrel-1.1.5
Fetching: sqlite3-1.3.6.gem (100%)
Building native extensions. This could take a while...
Successfully installed sqlite3-1.3.6
6 gems installed
Installing ri documentation for gem_plugin-0.2.3...
Installing ri documentation for daemons-1.1.8...
Installing ri documentation for fastthread-1.0.7...
No definition for dummy_dump
No definition for dummy_dump
No definition for rb_queue_marshal_load
No definition for rb_queue_marshal_dump
No definition for dummy_dump
No definition for dummy_dump
No definition for rb_queue_marshal_load
No definition for rb_queue_marshal_dump
Installing ri documentation for cgi_multipart_eof_fix-2.5.0...
Installing ri documentation for mongrel-1.1.5...
Installing ri documentation for sqlite3-1.3.6...
No definition for libversion
Enclosing class/module 'mSqlite3' for class Statement not known
Installing RDoc documentation for gem_plugin-0.2.3...
Installing RDoc documentation for daemons-1.1.8...
Installing RDoc documentation for fastthread-1.0.7...
No definition for dummy_dump
No definition for dummy_dump
No definition for rb_queue_marshal_load
No definition for rb_queue_marshal_dump
No definition for dummy_dump
No definition for dummy_dump
No definition for rb_queue_marshal_load
No definition for rb_queue_marshal_dump
Installing RDoc documentation for cgi_multipart_eof_fix-2.5.0...
Installing RDoc documentation for mongrel-1.1.5...
Installing RDoc documentation for sqlite3-1.3.6...
No definition for libversion
Enclosing class/module 'mSqlite3' for class Statement not known
Ruby - & - Rails Installed
Configuring perl magic....Off
Configuring php-pear magic....Off
Configuring ruby magic....Off
Configuring php-pecl magic....Off
patching file /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/cgi.rb
Mongrel update to 1.1.5cp1
root@server5 [~]#
[/bash]
Untuk memastikan Ruby sudah terinstall, cek versi Ruby & Gems dengan mengetikkan command berikut:
ruby -v
gem -v
[bash collapse="false"]
root@server5 [~]# ruby -v
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
root@server5 [~]# gem -v
1.8.24
root@server5 [~]#
[/bash]
[caption id="attachment_1256" align="alignleft" width="150" caption="Ruby On Rails & Gems"][/caption][caption id="attachment_1254" align="alignleft" width="150" caption="Ruby On Rails & Gems 2"][/caption]
Anda juga dapat install gems tambahan dengan mengetikkan command "gem install nama gem". Contoh:
gem install nokogiri
Jika gagal, coba download gems di halaman http://rubygems.org/gems/
Referensi: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/RubyonRails/InstallingRuby
Link 2 My Blog
If you find this blog useful or feel it would be useful to link from your blog or website, I would be extremely appreciative if you place this hyperlink code below to your site.
<a href="http://linggihnote.blogspot.com/" target="_blank"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx3jAGDB9ZDuc1ODWdIK3SPJBeIZF71xHZRwJSucIeJoSXiC3L7UmGUVaWIcT8O_e-5ulL1UykmZF8lH6H-k49Nc0-zNFVHE7T75Aj1vrqutqV8PwjjL1TvFsCAoiCjaoPIBv7IyreXpKR/s1600/Logo_Icon.png" /></a> |
Recent Posts |
Tidak ada komentar:
Posting Komentar