26
01
2007
理由あって CentOS 3.8 に RoR 環境構築したのでメモ。CentOS は vmware server に突っ込んでいるやつ。実機に RH 系は入れる気がしない(他意は無い)。
Ruby インストール
CentOS 3.8 の Ruby は 1.6.x で古いので RoR 動かない。よって Ruby を tarball からインストール。ついでに RubyGems も落としておく。
$ cd path/to/dir
$ wget ftp://core.ring.gr.jp/pub/lang/ruby/stable/ruby-1.8.5-p12.tar.gz http://rubyforge.org/frs/download.php/16452/rubygems-0.9.1.tgz
$ tar zxf ruby-1.8.5-p12.tar.gz
$ cd ruby-1.8.5-p12
$ ./configure && make
$ sudo make install
./configure オプションは --help で見たけど不要と判断してなにもつけず。
RubyGems
続いて RubyGems。入れておいた方が簡便そうだったの。
$ tar zxf rubygems-0.9.1.tgz
$ cd rubygems-0.9.1
$ sudo ruby setup.rb
setup.py みたいだなと思いながらインストール完了。
RoR インストール(gems 経由)
徐に下記コマンド。
aptitude みたいな感じで下記出力して完了。依存関係のパッケージも入れるかどうか聞いてきながら Enter 押していると完了。
$ sudo gem install rails
Bulk updating Gem source index for: http://gems.rubyforge.org
Install required dependency rake? [Yn]
Install required dependency activesupport? [Yn]
Install required dependency activerecord? [Yn]
Install required dependency actionpack? [Yn]
Install required dependency actionmailer? [Yn]
Install required dependency actionwebservice? [Yn]
Successfully installed rails-1.2.1
Successfully installed rake-0.7.1
Successfully installed activesupport-1.4.0
Successfully installed activerecord-1.15.1
Successfully installed actionpack-1.13.1
Successfully installed actionmailer-1.3.1
Successfully installed actionwebservice-1.2.1
Installing ri documentation for rake-0.7.1...
Installing ri documentation for activesupport-1.4.0...
Installing ri documentation for activerecord-1.15.1...
Installing ri documentation for actionpack-1.13.1...
Installing ri documentation for actionmailer-1.3.1...
Installing ri documentation for actionwebservice-1.2.1...
Installing RDoc documentation for rake-0.7.1...
Installing RDoc documentation for activesupport-1.4.0...
Installing RDoc documentation for activerecord-1.15.1...
Installing RDoc documentation for actionpack-1.13.1...
Installing RDoc documentation for actionmailer-1.3.1...
Installing RDoc documentation for actionwebservice-1.2.1...
さて、Ruby より先に RoR の勉強するか。本末転倒。
Popularity: 23%
Comments : No Comments »
Categories : Linux
25
01
2007
eix のバージョンアップ後初更新。出力が変わったな。読んでみたら古いから新しく切り替えてくれているようなんで、次からは序盤の出力減りそうではあるね。
$ sudo eix-sync
* eix-cache uses obsolete format.
Running update-eix! ...
[ ok
]
* Removing old portage-cache in /var/cache/edb/dep
/* ... [ ok ]
* Running emerge --sync ... [ ok ]
* Copying old /var/cache/eix cache to /var/cache/eix.previous ... [ ok ]
* Running update-eix ... [ ok ]
Diffing databases (11433 - 11457 packages)
[>] == app-admin/conky (1.4.0-r1 -> 1.4.5): Conky is an advanced, highly configurable system monitor for X
[>] == app-crypt/bestcrypt (1.6_p8 -> 1.6_p10-r1): commercially licensed transparent filesystem encryption
[>] == app-crypt/gpa (0.7.0-r2 -> 0.7.3): Standard GUI for GnuPG
[>] == app-emulation/crossover-office-bin (5.0.3 -> 6.0.0): specialized version of wine for MS Office
[U] == app-misc/pax-utils (0.1.13 -> 0.1.15): Various ELF related utils for ELF32, ELF64 binaries useful tools that can check files for security relevant properties
[U] == app-portage/portage-manpages (20060913 -> 20070122): collection of Gentoo manpages
[<] == app-text/duali (0.1.1 -> ~0.2.0): Arabic dictionary based on the DICT protocol
[>] == dev-dotnet/xsp (1.1.13.7 -> 1.2.1): XSP ASP.NET host
[>] == dev-java/commons-betwixt (0.6-r1 -> 0.6-r2): Introspective Bean to XML mapper
[>] == dev-java/commons-el (1.0 -> 1.0-r1): EL is the JSP 2.0 Expression Language Interpreter from Apache.
[>] == dev-java/itext (1.4.7-r2 -> 1.4.8): A Java library that generate documents in the Portable Document Format (PDF) and/or HTML.
<<dev-lang/cm3 (5.2.6): Critical Mass Modula-3 compiler
[<] == dev-lang/cm3-bin (5.2.6 -> ~5.4.0): Critical Mass Modula-3 compiler (binary version)
[>] == dev-lang/yap (~5.0.1 ~5.1.1 -> 5.1.1): YAP is a high-performance Prolog compiler.
[>] == dev-libs/dbus-glib (~0.72 -> 0.72): D-Bus bindings for glib
[>] == dev-libs/dbus-qt3-old (~0.70 -> 0.70): D-BUS Qt3 bindings compatible with old application API and new dbus
[>] == dev-libs/dietlibc (0.30 -> 0.30-r2): A minimal libc
[>] == dev-python/dbus-python (~0.71 -> 0.71): Python bindings for the D-Bus messagebus.
[>] == dev-ruby/rmagick (1.14.1 -> 1.14.1-r1): An interface between Ruby and the ImageMagick(TM) image processing library
[>] == dev-util/cook (2.20 -> 2.24): tool for constructing files; a drop in replacement for make
[>] == dev-util/cvs2svn (1.1.0 -> 1.5.0): Convert a CVS repository to a Subversion repository
[>] == dev-util/source-highlight (1.11-r2 -> 2.5): Generate highlighted source code as an (x)html document
[>] == dev-util/weka (3.4.3_p20041113 -> 3.4.6): A Java data mining package
[>] == games-strategy/crimson (0.5.0 -> 0.5.1): Tactical war game in the tradition of Battle Isle
[>] == media-fonts/dejavu (2.11 -> 2.13): DejaVu fonts, bitstream vera with ISO-8859-2 characters
[>] == media-libs/cal3d (0.10.0 -> 0.11.0-r1): Cal3D is a skeletal based character animation library
[>] == media-libs/libmad (0.15.1b -> 0.15.1b-r2): "M"peg "A"udio "D"ecoder library
[U] == media-libs/libpng (1.2.14(1.2) -> 1.2.15(1.2)): Portable Network Graphics library
[>] == media-libs/taglib (1.4 -> 1.4-r1): A library for reading and editing audio meta data
<<media-plugins/alsa-jack ([M]~1.0.10 [M]1.0.11): JACK pcm plugin. Allows native ALSA applications to connect to the jackd. Works transparantly for both capture and playback.
[<] == media-sound/amp (0.7.6 -> [M]0.7.6): AMP - the Audio Mpeg Player
[>] == media-sound/flac123 (0.0.8 -> 0.0.9): console app for playing FLAC audio files
<<media-sound/xmp ([M]2.0.5_pre3-r1): Extended Module Player
[>] == media-tv/ivtv (0.8.0 -> 0.8.2-r1): ivtv driver for Hauppauge PVR PCI cards
[U] == net-analyzer/net-snmp (5.2.1.2-r1 -> 5.4): Software for generating and retrieving SNMP data
[<] == net-firewall/firestorm (0.5.4 -> [M]0.5.4 [M]~0.5.5): Network IDS
<<net-ftp/ftpd (0.17-r4): The netkit FTP server with optional SSL support
[>] == net-im/sim (0.9.4.1 -> 0.9.4.2): Simple Instant Messenger (with KDE support). ICQ/AIM/Jabber/MSN/Yahoo.
<<net-misc/bcm4400 ([M]3.0.8 [M]~3.0.8-r1 [M]~3.0.13 [M]~3.0.14): Driver for the bcm4400 10/100 network card (in the form of kernel modules).
[>] == net-misc/ltsp ([M]4.1-r1 [M]~4.2 [M]~4.2-r1 -> 4.2-r1): Linux Terminal Server Project
[>] == net-misc/netstat-nat (1.4.5 -> 1.4.7): Display NAT connections
[>] == net-nds/lat (~1.2.0.1 ~1.2.1.1 -> 1.2.1.1): LDAP Administration Tool, allows you to browse LDAP-based directories and add/edit/delete entries.
[>] == net-news/snownews (1.5.6.1 -> 1.5.7-r1): Snownews, a text-mode RSS/RDF newsreader
[>] == net-p2p/amule (2.1.2 -> 2.1.3): aMule, the all-platform eMule p2p client
[<] == net-p2p/bittorrent-stats (3.2.1b-r4 -> [M]3.2.1b-r4): BitTorrent is a tool for distributing files via a distributed network of nodes
[>] == net-p2p/dc-qt (0.1.1 -> 0.1.2): Direct Connect Text Client, QT Gui
[>] == net-p2p/edonkey (1.0.2 -> 1.3.0): Overnet is the successor of eDonkey2000 that allows you to share files with millions of other people across the globe.
[<] == net-p2p/g2gui (0.3.0_pre1 -> [M]0.3.0_pre1): The 2nd generation gui for the universal p2p-client mldonkey
[>] == net-p2p/gnunet (0.7.0d-r1 -> 0.7.0e): GNUnet is an anonymous, distributed, reputation based network.
[>] == net-p2p/opendchub (0.7.14-r3 -> 0.7.15): hub software for Direct Connect
[>] == net-p2p/overnet (1.0.1 -> 1.3.0): Overnet is the successor of eDonkey2000 that allows you to share files with millions of other people across the globe.
[>] == sys-apps/dbus (0.62-r2 -> 1.0.2): A message bus system, a simple way for applications to talk to each other
[>] == sys-apps/hal (0.5.7-r3 -> 0.5.7.1-r3): Hardware Abstraction Layer
[U] == sys-apps/lm_sensors (2.10.0 -> 2.10.1): Hardware Monitoring user-space utilities
[>] == sys-apps/pmount (0.9.9 -> 0.9.13): Policy based mounter that gives the ability to mount removable devices as a user
[>] == sys-cluster/util-vserver (0.30.211 -> 0.30.212-r1): Linux-VServer admin utilities
<<sys-cluster/vserver-utils (~1.0 ~1.0.1 ~1.0.2 ~1.0.3): Linux-VServer admin utilities
[U] == sys-devel/gettext (0.15 -> 0.16.1): GNU locale utilities
[U] == sys-libs/pam (0.78-r3 -> 0.78-r5): Linux-PAM (Pluggable Authentication Modules)
[>] == www-apache/mod_caucho (3.0.21 -> 3.0.22): mod_caucho connects Resin and Apache2.
[>] == www-apache/mod_jk (1.2.19 -> 1.2.20): JK module for connecting Tomcat and Apache using the ajp13 protocol.
[>] == www-apache/mod_mono (1.1.13.5 -> 1.2.1): Apache module for Mono.
[>] == www-client/elinks (0.10.6 -> 0.11.2): Advanced and well-established text-mode web browser
[N] >> app-portage/gatt-svn ([M]~9999): Gentoo Arch Tester Tool
[N] >> app-text/gnochm (~0.9.9): GnoCHM is a CHM file viewer that integrates with the GNOME desktop.
[N] >> dev-java/ant-antlr ([M]~1.7.0): Apache Ant's optional tasks depending on antlr
[N] >> dev-java/ant-apache-bcel ([M]~1.7.0): Apache Ant's optional tasks depending on bcel
[N] >> dev-java/ant-apache-bsf ([M]~1.7.0): Apache Ant's optional tasks depending on bsf-2.3
[N] >> dev-java/ant-apache-log4j ([M]~1.7.0): Apache Ant's optional tasks depending on log4j
[N] >> dev-java/ant-apache-oro ([M]~1.7.0): Apache Ant's optional tasks depending on jakarta-oro-2.0
[N] >> dev-java/ant-apache-regexp ([M]~1.7.0): Apache Ant's optional tasks depending on jakarta-regexp-1.4
[N] >> dev-java/ant-apache-resolver ([M]~1.7.0): Apache Ant's optional tasks depending on xml-commons-resolver
[N] >> dev-java/ant-commons-logging ([M]~1.7.0): Apache Ant's optional tasks depending on commons-logging
[N] >> dev-java/ant-commons-net ([M]~1.7.0): Apache Ant's optional tasks depending on commons-net
[N] >> dev-java/ant-jai ([M]~1.7.0): Apache Ant's optional tasks depending on sun-jai-bin
[N] >> dev-java/ant-javamail ([M]~1.7.0): Apache Ant's optional tasks depending on sun-javamail
[N] >> dev-java/ant-jdepend ([M]~1.7.0): Apache Ant's optional tasks depending on jdepend
[N] >> dev-java/ant-jmf ([M]~1.7.0): Apache Ant's optional tasks depending on jmf
[N] >> dev-java/ant-jsch ([M]~1.7.0): Apache Ant's optional tasks depending on jsch
[N] >> dev-java/ant-junit ([M]~1.7.0): Apache Ant's optional tasks depending on junit
[N] >> dev-java/ant-nodeps ([M]~1.7.0): Apache Ant's optional tasks requiring no external deps
[N] >> dev-java/ant-swing ([M]~1.7.0): Apache Ant's optional tasks depending on swing
[N] >> dev-java/ant-trax ([M]~1.7.0): Apache Ant .jar with optional tasks depending on XML transformer (xalan)
[N] >> dev-java/glassfish-persistence (~1.0): Glassfish implementation of persistence API
[N] >> dev-java/rome (~0.9): An open source set of Atom/RSS Java utilities that make it easy to work in Java with most syndication formats
[N] >> dev-perl/B-Keywords (~1.05): Lists of reserved barewords and symbol names
[N] >> dev-perl/File-Copy-Recursive (~0.30): uses File::Copy to recursively copy dirs
[N] >> dev-perl/Sys-Statistics-Linux (~0.06): Collect linux system statistics
[N] >> net-ftp/netkit-ftpd (0.17-r4): The netkit FTP server with optional SSL support
[N] >> xfce-extra/verve ([M]~0.3.4 [M]~0.3.5): Xfce4 command line panel plugin
[N] >> xfce-extra/xfce4-dict ([M]~0.2.1): Xfce4 panel dict plugin
[N] >> xfce-extra/xfce4-screenshooter ([M]~1.0.0): Xfce4 panel screenshooter plugin
[N] >> xfce-extra/xfce4-timer ([M]~0.5.1): Xfce4 panel timer plugin
$ sudo emerge -ptuvND world
These are the packages that would be merged, in reverse order:
Calculating world dependencies... done!
[ebuild U ] net-analyzer/net-snmp-5.4 [5.2.1.2-r1] USE="ipv6 perl ssl tcpd -X -diskio% -doc -elf -lm_sensors -mfd-rewrites% -minimal -rpm (-selinux) -sendmail% -smux" 4,913 kB
[ebuild U ] app-portage/portage-manpages-20070122 [20060913] 21 kB
[ebuild U ] sys-apps/lm_sensors-2.10.1 [2.10.0] USE="-sensord" 887 kB
[nomerge ] www-client/w3m-0.5.1-r4 USE="gpm imlib nls ssl unicode -X -async -fbcon -gtk -lynxkeymap -migemo -xface"
[nomerge ] media-libs/imlib2-1.3.0 USE="bzip2 gif jpeg nls png zlib -X -doc -mmx -mp3 -tiff"
[ebuild U ] media-libs/libpng-1.2.15 [1.2.14] USE="-doc" 609 kB
[nomerge ] app-editors/emacs-21.4-r4 USE="nls -X -Xaw3d -leim -lesstif -motif -nosendmail"
[nomerge ] mail-mta/postfix-2.2.10 USE="ipv6 mailwrapper pam sasl ssl -cdb -hardened -ldap -mbox -mysql -nis -postgres (-selinux) -vda"
[nomerge ] dev-libs/cyrus-sasl-2.1.22-r1 USE="berkdb crypt gdbm pam ssl -authdaemond -java -kerberos -ldap -mysql -ntlm_unsupported_patch -postgres -sample -srp -urandom"
[ebuild U ] sys-libs/pam-0.78-r5 [0.78-r3] USE="berkdb -nis -pam_chroot -pam_console -pam_timestamp -pwdb (-selinux)" 85 kB
[nomerge ] sys-apps/portage-2.1.1-r2 USE="-build -doc (-selinux)" LINGUAS="-pl"
[ebuild U ] app-misc/pax-utils-0.1.15 [0.1.13] USE="-caps" 52 kB
[nomerge ] perl-core/Test-Harness-2.56
[nomerge ] dev-python/python-fchksum-1.7.1
[nomerge ] dev-lang/python-2.4.3-r4 USE="berkdb gdbm ipv6 ncurses readline ssl -bootstrap -build -doc -nocxx -tk -ucs2"
[nomerge ] dev-libs/openssl-0.9.8d USE="zlib -bindist -emacs -sse2 -test"
[nomerge ] sys-apps/diffutils-2.8.7-r1 USE="nls -static"
[ebuild U ] sys-devel/gettext-0.16.1 [0.15] USE="nls -doc -emacs -nocxx" 8,339 kB
Total size of downloads: 14,910 kB
app-emulation/crossover-office-bin が気になるのでデスクトップ機で入れてみようかな。
Popularity: 21%
Comments : No Comments »
Categories : gentoo, Linux