[root@centos rails]# yum install openssl-devel zlib-devel gcc make Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: ftp.jaist.ac.jp * updates: ftp.jaist.ac.jp * addons: ftp.jaist.ac.jp * extras: ftp.jaist.ac.jp Setting up Install Process Parsing package install arguments Package make - 1:3.81-3.el5.i386 is already installed. Resolving Dependencies --> Running transaction check ---> Package gcc.i386 0:4.1.2-42.el5 set to be updated --> Processing Dependency: libgomp.so.1 for package: gcc --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc --> Processing Dependency: libgomp = 4.1.2-42.el5 for package: gcc ---> Package zlib-devel.i386 0:1.2.3-3 set to be updated ---> Package openssl-devel.i386 0:0.9.8b-10.el5_2.1 set to be updated --> Processing Dependency: krb5-devel for package: openssl-devel --> Running transaction check ---> Package glibc-devel.i386 0:2.5-24.el5_2.2 set to be updated --> Processing Dependency: glibc-headers = 2.5-24.el5_2.2 for package: glibc-devel --> Processing Dependency: glibc-headers for package: glibc-devel ---> Package krb5-devel.i386 0:1.6.1-25.el5_2.2 set to be updated --> Processing Dependency: keyutils-libs-devel for package: krb5-devel --> Processing Dependency: libselinux-devel for package: krb5-devel --> Processing Dependency: e2fsprogs-devel for package: krb5-devel ---> Package libgomp.i386 0:4.1.2-42.el5 set to be updated --> Running transaction check ---> Package glibc-headers.i386 0:2.5-24.el5_2.2 set to be updated --> Processing Dependency: kernel-headers for package: glibc-headers --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers ---> Package e2fsprogs-devel.i386 0:1.39-15.el5 set to be updated ---> Package keyutils-libs-devel.i386 0:1.2-1.el5 set to be updated ---> Package libselinux-devel.i386 0:1.33.4-5.el5 set to be updated --> Processing Dependency: libsepol-devel >= 1.15.2-1 for package: libselinux-devel --> Running transaction check ---> Package libsepol-devel.i386 0:1.15.2-1.el5 set to be updated ---> Package kernel-headers.i386 0:2.6.18-92.1.22.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: gcc i386 4.1.2-42.el5 base 5.2 M openssl-devel i386 0.9.8b-10.el5_2.1 updates 1.8 M Installing for dependencies: e2fsprogs-devel i386 1.39-15.el5 base 568 k glibc-devel i386 2.5-24.el5_2.2 updates 2.0 M glibc-headers i386 2.5-24.el5_2.2 updates 611 k kernel-headers i386 2.6.18-92.1.22.el5 updates 854 k keyutils-libs-devel i386 1.2-1.el5 base 27 k krb5-devel i386 1.6.1-25.el5_2.2 updates 1.9 M libgomp i386 4.1.2-42.el5 base 82 k libselinux-devel i386 1.33.4-5.el5 base 131 k libsepol-devel i386 1.15.2-1.el5 base 189 k zlib-devel i386 1.2.3-3 base 101 k Transaction Summary ============================================================================= Install 12 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 13 M Is this ok [y/N]: y Downloading Packages: (1/12): libgomp-4.1.2-42. 100% |=========================| 82 kB 00:00 (2/12): openssl-devel-0.9 100% |=========================| 1.8 MB 00:03 (3/12): libselinux-devel- 100% |=========================| 131 kB 00:00 (4/12): keyutils-libs-dev 100% |=========================| 27 kB 00:00 (5/12): kernel-headers-2. 100% |=========================| 854 kB 00:02 (6/12): libsepol-devel-1. 100% |=========================| 189 kB 00:00 (7/12): gcc-4.1.2-42.el5. 100% |=========================| 5.2 MB 00:10 (8/12): krb5-devel-1.6.1- 100% |=========================| 1.9 MB 00:04 (9/12): e2fsprogs-devel-1 100% |=========================| 568 kB 00:01 (10/12): glibc-devel-2.5- 100% |=========================| 2.0 MB 00:04 (11/12): zlib-devel-1.2.3 100% |=========================| 101 kB 00:00 (12/12): glibc-headers-2. 100% |=========================| 611 kB 00:01 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: libgomp ####################### [ 1/12] Installing: keyutils-libs-devel ####################### [ 2/12] Installing: kernel-headers ####################### [ 3/12] Installing: glibc-headers ####################### [ 4/12] Installing: glibc-devel ####################### [ 5/12] Installing: libsepol-devel ####################### [ 6/12] Installing: libselinux-devel ####################### [ 7/12] Installing: e2fsprogs-devel ####################### [ 8/12] Installing: krb5-devel ####################### [ 9/12] Installing: zlib-devel ####################### [10/12] Installing: gcc ####################### [11/12] Installing: openssl-devel ####################### [12/12] Installed: gcc.i386 0:4.1.2-42.el5 openssl-devel.i386 0:0.9.8b-10.el5_2.1 Dependency Installed: e2fsprogs-devel.i386 0:1.39-15.el5 glibc-devel.i386 0:2.5-24.el5_2.2 glibc-headers.i386 0:2.5-24.el5_2.2 kernel-headers.i386 0:2.6.18-92.1.22.el5 keyutils-libs-devel.i386 0:1.2-1.el5 krb5-devel.i386 0:1.6.1-25.el5_2.2 libgomp.i386 0:4.1.2-42.el5 libselinux-devel.i386 0:1.33.4-5.el5 libsepol-devel.i386 0:1.15.2-1.el5 zlib-devel.i386 0:1.2.3-3 Complete! [root@centos tmp]# wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p230.tar.gz --09:47:16-- ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p230.tar.gz => `ruby-1.8.6-p230.tar.gz' ftp.ruby-lang.org をDNSに問いあわせています... 221.186.184.68 ftp.ruby-lang.org|221.186.184.68|:21 に接続しています... 接続しました。 anonymous としてログインしています... ログインしました! ==> SYST ... 完了しました。 ==> PWD ... 完了しました。 ==> TYPE I ... 完了しました。 ==> CWD /pub/ruby/1.8 ... 完了しました。 ==> SIZE ruby-1.8.6-p230.tar.gz ... 4583204 ==> PASV ... 完了しました。 ==> RETR ruby-1.8.6-p230.tar.gz ... 完了しました。 長さ: 4583204 (4.4M) 100%[=======================================>] 4,583,204 732K/s in 6.1s 09:47:23 (737 KB/s) - `ruby-1.8.6-p230.tar.gz' を保存しました [4583204] [root@centos tmp]# -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_pkey_dh.c gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_x509revoked.c ossl_x509revoked.c: In function ‘ossl_x509revoked_new’: ossl_x509revoked.c:48: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type ossl_x509revoked.c: In function ‘DupX509RevokedPtr’: ossl_x509revoked.c:64: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_x509store.c gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_pkey.c gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_bio.c gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c openssl_missing.c gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_ns_spki.c ossl_ns_spki.c: In function ‘ossl_spki_initialize’: ossl_ns_spki.c:67: 警告: passing argument 2 of ‘d2i_NETSCAPE_SPKI’ from incompatible pointer type gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_x509cert.c gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_rand.c gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_x509crl.c gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_x509req.c gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_x509.c gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_engine.c gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_asn1.c ossl_asn1.c: In function ‘decode_bool’: ossl_asn1.c:313: 警告: passing argument 2 of ‘d2i_ASN1_BOOLEAN’ from incompatible pointer type ossl_asn1.c: In function ‘decode_int’: ossl_asn1.c:328: 警告: passing argument 2 of ‘d2i_ASN1_INTEGER’ from incompatible pointer type ossl_asn1.c: In function ‘decode_bstr’: ossl_asn1.c:347: 警告: passing argument 2 of ‘d2i_ASN1_BIT_STRING’ from incompatible pointer type ossl_asn1.c: In function ‘decode_enum’: ossl_asn1.c:373: 警告: passing argument 2 of ‘d2i_ASN1_ENUMERATED’ from incompatible pointer type ossl_asn1.c: In function ‘decode_null’: ossl_asn1.c:390: 警告: passing argument 2 of ‘d2i_ASN1_NULL’ from incompatible pointer type ossl_asn1.c: In function ‘decode_obj’: ossl_asn1.c:407: 警告: passing argument 2 of ‘d2i_ASN1_OBJECT’ from incompatible pointer type ossl_asn1.c: In function ‘decode_time’: ossl_asn1.c:435: 警告: passing argument 2 of ‘d2i_ASN1_TIME’ from incompatible pointer type ossl_asn1.c: In function ‘ossl_asn1_decode0’: ossl_asn1.c:727: 警告: passing argument 1 of ‘ASN1_get_object’ from incompatible pointer type gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_pkey_dsa.c ossl_pkey_dsa.c: In function ‘ossl_dsa_initialize’: ossl_pkey_dsa.c:141: 警告: passing argument 1 of ‘PEM_ASN1_read_bio’ from incompatible pointer type ossl_pkey_dsa.c:141: 警告: passing argument 4 of ‘PEM_ASN1_read_bio’ from incompatible pointer type ossl_pkey_dsa.c: In function ‘ossl_dsa_to_public_key’: ossl_pkey_dsa.c:313: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ossl_pkcs7.c ossl_pkcs7.c: In function ‘ossl_pkcs7si_new’: ossl_pkcs7.c:90: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type ossl_pkcs7.c: In function ‘DupPKCS7SignerPtr’: ossl_pkcs7.c:103: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type ossl_pkcs7.c: In function ‘ossl_pkcs7ri_new’: ossl_pkcs7.c:116: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type ossl_pkcs7.c: In function ‘DupPKCS7RecipientPtr’: ossl_pkcs7.c:129: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type gcc -shared -o ../../.ext/i686-linux/openssl.so ossl_x509name.o ossl_digest.o ossl_pkey_rsa.o ossl_ocsp.o ossl_hmac.o ossl_bn.o ossl_x509attr.o ossl_pkcs12.o ossl_config.o ossl_ssl.o ossl_cipher.o ossl.o ossl_x509ext.o ossl_pkey_dh.o ossl_x509revoked.o ossl_x509store.o ossl_pkey.o ossl_bio.o openssl_missing.o ossl_ns_spki.o ossl_x509cert.o ossl_rand.o ossl_x509crl.o ossl_x509req.o ossl_x509.o ossl_engine.o ossl_asn1.o ossl_pkey_dsa.o ossl_pkcs7.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -lssl -lcrypto -ldl -lcrypt -lm -lc mkdir -p ../../.ext/common/openssl mkdir -p ../../.ext/common/net cp ../.././ext/openssl/lib/openssl.rb ../../.ext/common cp ../.././ext/openssl/lib/openssl/ssl.rb ../../.ext/common/openssl cp ../.././ext/openssl/lib/openssl/bn.rb ../../.ext/common/openssl cp ../.././ext/openssl/lib/openssl/x509.rb ../../.ext/common/openssl cp ../.././ext/openssl/lib/openssl/buffering.rb ../../.ext/common/openssl cp ../.././ext/openssl/lib/openssl/cipher.rb ../../.ext/common/openssl cp ../.././ext/openssl/lib/openssl/digest.rb ../../.ext/common/openssl cp ../.././ext/openssl/lib/net/ftptls.rb ../../.ext/common/net cp ../.././ext/openssl/lib/net/telnets.rb ../../.ext/common/net make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/openssl' から出ます compiling pty make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/pty' に入ります gcc -I. -I../.. -I../../. -I../.././ext/pty -DHAVE_SYS_STROPTS_H -DHAVE_SETRESUID -DHAVE_PTY_H -DHAVE_OPENPTY -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c pty.c gcc -shared -o ../../.ext/i686-linux/pty.so pty.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -lutil -ldl -lcrypt -lm -lc cp ../.././ext/pty/lib/expect.rb ../../.ext/common make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/pty' から出ます compiling racc/cparse make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/racc/cparse' に入ります mkdir -p ../../../.ext/i686-linux/racc gcc -I. -I../../.. -I../../../. -I../../.././ext/racc/cparse -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c cparse.c gcc -shared -o ../../../.ext/i686-linux/racc/cparse.so cparse.o -L. -L../../.. -L. -rdynamic -Wl,-export-dynamic -ldl -lcrypt -lm -lc make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/racc/cparse' から出ます compiling readline compiling sdbm make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/sdbm' に入ります gcc -I. -I../.. -I../../. -I../.././ext/sdbm -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c _sdbm.c gcc -I. -I../.. -I../../. -I../.././ext/sdbm -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c init.c gcc -shared -o ../../.ext/i686-linux/sdbm.so _sdbm.o init.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -ldl -lcrypt -lm -lc make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/sdbm' から出ます compiling socket make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/socket' に入ります gcc -I. -I../.. -I../../. -I../.././ext/socket -DHAVE_ARPA_INET_H -DENABLE_IPV6 -DINET6 -DHAVE_SOCKADDR_STORAGE -DHAVE_NETINET_TCP_H -DHAVE_NETINET_UDP_H -DHAVE_SENDMSG -DHAVE_RECVMSG -DHAVE_ST_MSG_CONTROL -DHAVE_GETNAMEINFO -DHAVE_GETADDRINFO -DHAVE_TYPE_SOCKLEN_T -DHAVE_SYS_UN_H -DHAVE_SYS_UIO_H -DHAVE_SOCKET -DHAVE_GETHOSTBYNAME2 -DHAVE_SOCKETPAIR -DHAVE_GETHOSTNAME -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c socket.c gcc -shared -o ../../.ext/i686-linux/socket.so socket.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -ldl -lcrypt -lm -lc make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/socket' から出ます compiling stringio make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/stringio' に入ります gcc -I. -I../.. -I../../. -I../.././ext/stringio -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c stringio.c gcc -shared -o ../../.ext/i686-linux/stringio.so stringio.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -ldl -lcrypt -lm -lc make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/stringio' から出ます compiling strscan make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/strscan' に入ります gcc -I. -I../.. -I../../. -I../.././ext/strscan -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c strscan.c gcc -shared -o ../../.ext/i686-linux/strscan.so strscan.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -ldl -lcrypt -lm -lc make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/strscan' から出ます compiling syck make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/syck' に入ります gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c token.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c bytecode.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c syck.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c gram.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c implicit.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c node.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c rubyext.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c yaml2byte.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c emitter.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c handler.c gcc -shared -o ../../.ext/i686-linux/syck.so token.o bytecode.o syck.o gram.o implicit.o node.o rubyext.o yaml2byte.o emitter.o handler.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -ldl -lcrypt -lm -lc make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/syck' から出ます compiling syslog make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/syslog' に入ります gcc -I. -I../.. -I../../. -I../.././ext/syslog -DHAVE_SYSLOG_H -DHAVE_OPENLOG -DHAVE_SETLOGMASK -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c syslog.c gcc -shared -o ../../.ext/i686-linux/syslog.so syslog.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -ldl -lcrypt -lm -lc make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/syslog' から出ます compiling thread make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/thread' に入ります gcc -I. -I../.. -I../../. -I../.././ext/thread -D_FILE_OFFSET_BITS=64 -DUSE_MEM_POOLS -fPIC -g -O2 -c thread.c thread.c: In function ‘wait_condvar’: thread.c:667: 警告: passing argument 1 of ‘rb_ensure’ from incompatible pointer type gcc -shared -o ../../.ext/i686-linux/thread.so thread.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -ldl -lcrypt -lm -lc cp ../.././ext/thread/lib/thread.rb ../../.ext/common make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/thread' から出ます compiling tk compiling tk/tkutil compiling win32ole compiling zlib make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/zlib' に入ります gcc -I. -I../.. -I../../. -I../.././ext/zlib -DHAVE_ZLIB_H -DOS_CODE=OS_UNIX -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c zlib.c gcc -shared -o ../../.ext/i686-linux/zlib.so zlib.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -lz -ldl -lcrypt -lm -lc make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230/ext/zlib' から出ます making ruby make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230' に入ります gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -L. -rdynamic -Wl,-export-dynamic main.o -lruby-static -ldl -lcrypt -lm -o ruby make[1]: ディレクトリ `/tmp/ruby-1.8.6-p230' から出ます [root@centos ruby-1.8.6-p230]# make install ./miniruby ./instruby.rb --dest-dir="" --extout=".ext" --make="make" --mflags="" --make-flags="" --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 install -c -m 0644 rubygems/indexer.rb /home/rails/lib/ruby/site_ruby/1.8/rubygems/indexer.rb install -c -m 0644 rubygems/validator.rb /home/rails/lib/ruby/site_ruby/1.8/rubygems/validator.rb install -c -m 0644 rubygems/remote_fetcher.rb /home/rails/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb install -c -m 0644 rubygems/source_info_cache_entry.rb /home/rails/lib/ruby/site_ruby/1.8/rubygems/source_info_cache_entry.rb cp gem /tmp/gem install -c -m 0755 /tmp/gem /home/rails/bin/gem rm /tmp/gem cp update_rubygems /tmp/update_rubygems install -c -m 0755 /tmp/update_rubygems /home/rails/bin/update_rubygems rm /tmp/update_rubygems Removing old RubyGems RDoc and ri... Installing rubygems-0.9.5 ri into /home/rails/lib/ruby/gems/1.8/doc/rubygems-0.9.5/ri... Installing rubygems-0.9.5 rdoc into /home/rails/lib/ruby/gems/1.8/doc/rubygems-0.9.5/rdoc... As of RubyGems 0.8.0, library stubs are no longer needed. Searching $LOAD_PATH for stubs to optionally delete (may take a while)... ...done. No library stubs found. [rails@centos rubygems-0.9.5]$ [rails@centos tmp]$ cd date2-4.0.10 [rails@centos date2-4.0.10]$ ruby install.rb config ---> lib ---> lib/date <--- lib/date <--- lib [rails@centos date2-4.0.10]$ ruby install.rb setup ---> lib ---> lib/date <--- lib/date <--- lib [rails@centos date2-4.0.10]$ ruby install.rb install rm -f InstalledFiles ---> lib mkdir -p /home/rails/lib/ruby/site_ruby/1.8 install parsedate.rb /home/rails/lib/ruby/site_ruby/1.8/ install date.rb /home/rails/lib/ruby/site_ruby/1.8/ ---> lib/date mkdir -p /home/rails/lib/ruby/site_ruby/1.8/date install format.rb /home/rails/lib/ruby/site_ruby/1.8/date install holiday.rb /home/rails/lib/ruby/site_ruby/1.8/date <--- lib/date <--- lib [rails@centos date2-4.0.10]$ cd .. [rails@centos tmp]$ cd mysql-ruby-2.7.4 [rails@centos mysql-ruby-2.7.4]$ ruby extconf.rb --with-mysql-config checking for mysql_ssl_set()... yes checking for mysql.h... yes creating Makefile [rails@centos mysql-ruby-2.7.4]$ make gcc -I. -I. -I/home/rails/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H -D_FILE_OFFSET_BITS=64 -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -g -O2 -c mysql.c gcc -shared -o mysql.so mysql.o -L. -L/home/rails/lib -Wl,-R/home/rails/lib -L. -rdynamic -Wl,-export-dynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -ldl -lcrypt -lm -lc [rails@centos mysql-ruby-2.7.4]$ [rails@centos tmp]$ gem install atom-tools --version 1.0.0 --include-dependencies INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed atom-tools-1.0.0 1 gem installed Installing ri documentation for atom-tools-1.0.0... Installing RDoc documentation for atom-tools-1.0.0... [rails@centos tmp]$ gem install composite_primary_keys --version 0.9.0 --include-dependencies INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed activesupport-2.2.2 Successfully installed activerecord-2.2.2 Successfully installed composite_primary_keys-0.9.0 3 gems installed Installing ri documentation for activesupport-2.2.2... Installing ri documentation for activerecord-2.2.2... Installing ri documentation for composite_primary_keys-0.9.0... Installing RDoc documentation for activesupport-2.2.2... Installing RDoc documentation for activerecord-2.2.2... Installing RDoc documentation for composite_primary_keys-0.9.0... [rails@centos tmp]$ gem install fastercsv --version 1.2.3 --include-dependencies INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed fastercsv-1.2.3 1 gem installed Installing ri documentation for fastercsv-1.2.3... Installing RDoc documentation for fastercsv-1.2.3... [rails@centos tmp]$ gem install gettext --version 1.10.0 --include-dependencies INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list Bulk updating Gem source index for: http://gems.rubyforge.org Building native extensions. This could take a while... Successfully installed gettext-1.10.0 1 gem installed [rails@centos tmp]$ gem install rails --version 1.2.5 --include-dependencies INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed rake-0.8.4 Successfully installed activesupport-1.4.4 Successfully installed activerecord-1.15.5 Successfully installed actionpack-1.13.5 Successfully installed actionmailer-1.3.5 Successfully installed actionwebservice-1.2.5 Successfully installed rails-1.2.5 7 gems installed Installing ri documentation for rake-0.8.4... Installing ri documentation for activesupport-1.4.4... Installing ri documentation for activerecord-1.15.5... Installing ri documentation for actionpack-1.13.5... Installing ri documentation for actionmailer-1.3.5... Installing ri documentation for actionwebservice-1.2.5... Installing RDoc documentation for rake-0.8.4... Installing RDoc documentation for activesupport-1.4.4... Installing RDoc documentation for activerecord-1.15.5... Installing RDoc documentation for actionpack-1.13.5... Installing RDoc documentation for actionmailer-1.3.5... Installing RDoc documentation for actionwebservice-1.2.5... [rails@centos tmp]$ gem install uuidtools --version 1.0.3 --include-dependencies INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed uuidtools-1.0.3 1 gem installed Installing ri documentation for uuidtools-1.0.3... Installing RDoc documentation for uuidtools-1.0.3... [root@centos init.d]# ./mysqld restart MySQL を停止中: [失敗] MySQL データベースを初期化中: Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h centos.com password 'new-password' See the manual for more instructions. You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd mysql-test ; perl mysql-test-run.pl Please report any problems with the /usr/bin/mysqlbug script! The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.com [ OK ] MySQL を起動中: [ OK ] [root@centos init.d]# exit exit [rails@centos kogaku_gassan]$ ruby script/server -e production => Booting WEBrick... /home/rails/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 21, col -1:`' (ArgumentError) from /home/rails/lib/ruby/1.8/yaml.rb:133:in `load' from /home/rails/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/initializer.rb:551:in `database_configuration' from /home/rails/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/initializer.rb:234:in `initialize_database' from /home/rails/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/initializer.rb:92:in `process' from /home/rails/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/initializer.rb:47:in `send' from /home/rails/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/initializer.rb:47:in `run' from ./script/../config/../config/environment.rb:13 from /home/rails/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' ... 10 levels... from /home/rails/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/commands/server.rb:39 from /home/rails/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /home/rails/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from script/server:3 [rails@centos kogaku_gassan]$ [rails@centos kogaku_gassan]$ ruby script/server -e production => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2009-03-06 14:12:32] INFO WEBrick 1.3.1 [2009-03-06 14:12:32] INFO ruby 1.8.6 (2008-06-20) [i686-linux] [2009-03-06 14:12:32] INFO WEBrick::HTTPServer#start: pid=3643 port=3000 172.21.21.16 - - [06/Mar/2009:14:13:09 JST] "GET / HTTP/1.1" 200 2586 - -> / 172.21.21.16 - - [06/Mar/2009:14:13:10 JST] "GET /stylesheets/modal_windows/basemod.css?1206589112 HTTP/1.1" 200 1776 http://172.21.20.41:3000/ -> /stylesheets/modal_windows/basemod.css?1206589112 172.21.21.16 - - [06/Mar/2009:14:13:10 JST] "GET /stylesheets/main.css?1206589112 HTTP/1.1" 200 8038 http://172.21.20.41:3000/ -> /stylesheets/main.css?1206589112 172.21.21.16 - - [06/Mar/2009:14:13:10 JST] "GET /javascripts/prototype.js?1206589109 HTTP/1.1" 200 71260 http://172.21.20.41:3000/ -> /javascripts/prototype.js?1206589109 172.21.21.16 - - [06/Mar/2009:14:13:10 JST] "GET /javascripts/effects.js?1206589109 HTTP/1.1" 200 38200 http://172.21.20.41:3000/ -> /javascripts/effects.js?1206589109 172.21.21.16 - - [06/Mar/2009:14:13:10 JST] "GET /javascripts/dragdrop.js?1206589109 HTTP/1.1" 200 30550 http://172.21.20.41:3000/ -> /javascripts/dragdrop.js?1206589109 172.21.21.16 - - [06/Mar/2009:14:13:10 JST] "GET /javascripts/controls.js?1206589109 HTTP/1.1" 200 28911 http://172.21.20.41:3000/ -> /javascripts/controls.js?1206589109 172.21.21.16 - - [06/Mar/2009:14:13:10 JST] "GET /javascripts/application.js?1206589109 HTTP/1.1" 200 2279 http://172.21.20.41:3000/ -> /javascripts/application.js?1206589109 172.21.21.16 - - [06/Mar/2009:14:13:10 JST] "GET /javascripts/control.modal.2.2.3.js?1206589109 HTTP/1.1" 200 15377 http://172.21.20.41:3000/ -> /javascripts/control.modal.2.2.3.js?1206589109 172.21.21.16 - - [06/Mar/2009:14:13:11 JST] "GET /javascripts/calendar_date_select/calendar_date_select.js?1206589109 HTTP/1.1" 200 20168 http://172.21.20.41:3000/ -> /javascripts/calendar_date_select/calendar_date_select.js?1206589109 172.21.21.16 - - [06/Mar/2009:14:13:11 JST] "GET /javascripts/calendar_date_select/format_japanese.js?1206589109 HTTP/1.1" 200 904 http://172.21.20.41:3000/ -> /javascripts/calendar_date_select/format_japanese.js?1206589109 172.21.21.16 - - [06/Mar/2009:14:13:11 JST] "GET /stylesheets/calendar_date_select/default.css?1206589112 HTTP/1.1" 200 2472 http://172.21.20.41:3000/ -> /stylesheets/calendar_date_select/default.css?1206589112 172.21.21.16 - - [06/Mar/2009:14:14:34 JST] "POST / HTTP/1.1" 302 99 http://172.21.20.41:3000/ -> / (eval):2: [BUG] Segmentation fault ruby 1.8.6 (2008-06-20) [i686-linux] アボートしました export MALLOC_CHECK_=0; うまく動作するときもあるが、不安定 [rails@centos kogaku_gassan]$ 再度 [root@centos tmp]# wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz --09:47:16-- ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz => `ruby-1.8.6.tar.gz' ftp.ruby-lang.org をDNSに問いあわせています... 221.186.184.68 ftp.ruby-lang.org|221.186.184.68|:21 に接続しています... 接続しました。 anonymous としてログインしています... ログインしました! ==> SYST ... 完了しました。 ==> PWD ... 完了しました。 ==> TYPE I ... 完了しました。 ==> CWD /pub/ruby/1.8 ... 完了しました。 ==> SIZE ruby-1.8.6.tar.gz ... 4583204 ==> PASV ... 完了しました。 ==> RETR ruby-1.8.6.tar.gz ... 完了しました。 長さ: 4583204 (4.4M) 100%[=======================================>] 4,583,204 732K/s in 6.1s 09:47:23 (737 KB/s) - `ruby-1.8.6' を保存しました [4583204] [root@centos tmp]#.configure [root@centos tmp]make [root@centos tmp]make install |
[rails@centos club]$ rake db:migrate (in /home/rails/rails/asagao) rake aborted! - /tmp/mysql.sock (See full trace by running task with --trace) あらら、エラーになりました。ymlの設定がおかしいかも、 [root@centos tmp]# cd /var/lib/mysql [root@centos mysql]# ls asagao_development ib_logfile0 ibdata1 mysql test asagao_test ib_logfile1 kogaku_gassan_production mysql.sock [root@centos mysql]# ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock [root@centos mysql]# exit [rails@centos club]$ rake db:migrate (in /home/rails/rails/asagao) == CreateMembers: migrating =================================================== -- create_table(:members) -> 0.0553s == CreateMembers: migrated (0.0557s) ========================================== [rails@centos club]$ mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 5.0.45 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> use asagao_development Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> desc members; +---------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | member_number | int(11) | NO | | | | | player | tinyint(1) | NO | | 0 | | | family_name | varchar(255) | NO | | | | | given_name | varchar(255) | NO | | | | | furigana | varchar(255) | NO | | | | | email | varchar(255) | YES | | NULL | | | phone | varchar(255) | YES | | NULL | | | sex | int(11) | YES | | NULL | | | birthday | date | YES | | NULL | | | remarks | text | YES | | NULL | | | created_at | datetime | YES | | NULL | | | updated_at | datetime | YES | | NULL | | +---------------+--------------+------+-----+---------+----------------+ 13 rows in set (0.01 sec) mysql> exit Bye [rails@centos asagao]$ mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 11 Server version: 5.0.45 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> use asagao_development Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> set character set utf8; Query OK, 0 rows affected (0.00 sec) mysql> select family_name from members; +-------------+ | family_name | +-------------+ | 佐藤 | | 鈴木 | | 高橋 | | 田中 | | 渡辺 | | 伊藤 | | 山本 | | 佐藤 | | 鈴木 | | 高橋 | +-------------+ 10 rows in set (0.00 sec) mysql> exit Bye [rails@centos asagao]$ ruby script/generate controller members index search show exists app/controllers/ exists app/helpers/ create app/views/members exists test/functional/ create app/controllers/members_controller.rb create test/functional/members_controller_test.rb create app/helpers/members_helper.rb create app/views/members/index.rhtml create app/views/members/search.rhtml create app/views/members/show.rhtml [rails@centos asagao]$ 印刷にも興味が出てきた [rails@centos asagao]$ ruby script/plugin install http://rfpdf.googlecode.com/svn/rfpdf + ./rfpdf/CHANGELOG + ./rfpdf/MIT-LICENSE + ./rfpdf/README + ./rfpdf/init.rb + ./rfpdf/lib/rfpdf/bookmark.rb + ./rfpdf/lib/rfpdf/chinese.rb + ./rfpdf/lib/rfpdf/errors.rb + ./rfpdf/lib/rfpdf/fpdf.rb + ./rfpdf/lib/rfpdf/fpdf_eps.rb + ./rfpdf/lib/rfpdf/japanese.rb + ./rfpdf/lib/rfpdf/korean.rb + ./rfpdf/lib/rfpdf/makefont.rb + ./rfpdf/lib/rfpdf/rfpdf.rb + ./rfpdf/lib/rfpdf/view.rb + ./rfpdf/lib/rfpdf.rb + ./rfpdf/test/test_helper.rb [rails@centos asagao]$ ls README app components db lib public test vendor Rakefile club config doc log script tmp [rails@centos asagao]$ cd vendor [rails@centos vendor]$ ls plugins [rails@centos vendor]$ cd plugins [rails@centos plugins]$ ls calendar_helper my_format pagination_links rfpdf [rails@centos plugins]$ プログラムはこんな感じ pdf = FPDF.new pdf.extend(PDF_Japanese) pdf.AddSJISFont(); pdf.AddPage(); pdf.SetFont('SJIS',’’,18); icSJIS = Iconv.new('SJIS', 'UTF-8') pdf.Write(15, icSJIS.iconv("発表します表")) send_data pdf.Output, :filename => "public/pdf/test.pdf", :type => "application/pdf" 「表」という文字のSJISコードで不具合出るので、 lib/rfpdf/fpdf.rb内の - txt.gsub!('¥¥', '¥¥¥¥') を + txt.gsub!('¥¥', '¥¥¥¥¥¥') (¥は半角です) こうすると直る。 |