rails:3393
From: ¤ù¤ó¹Å°ê <katayama@l...>
Date: Fri, 26 Feb 2010 14:19:08 +0900
Subject: [rails:3393] Re: passenger + oracle_enhanced + oci8
ÊÒ»³¡÷¥é¥¤¥È¥Ï¥¦¥¹¤È¿½¤·¤Þ¤¹¡£ ¤³¤Î¸½¾Ý¤Ï¡¢°ÊÁ°¡¢ÊÀ¼Ò¤Ç¤âÁø¶ø¤·¤Þ¤·¤¿¡£ ³Î¤«¡¢Apache+Passenger+Rails¤Ç´Ä¶ÊÑ¿ô¤òǧ¼±¤·¤Æ¤¢¤²¤ëɬÍפ¬¤¢¤Ã¤¿¤È »×¤¤¤Þ¤¹¡£¡ÊApache¤¬Æ°ºî¤¹¤ë¥æ¡¼¥¶¡¼¤Î´Ä¶ÊÑ¿ô¡©¡Ë ¥³¥Æ¥³¥Æ¤Ç¤¹¤¬¡¢ /etc/init.d/httpd ¤ÎÃæ¤Ë¡¢ export LD_LIBRARY_PATH = /hoge/hoge ¤ß¤¿¤¤¤ËɬÍפʴĶÊÑ¿ô¤ò½ñ¤¤Þ¤·¤¿¡£ ¤â¤Ã¤È¼«Á³¤È¤¤¤¦¤«¡¢¤Á¤ã¤ó¤È¤·¤¿´Ä¶ÊÑ¿ô¤òÀßÄꤹ¤ë¾ì½ê¤¬¤¢¤ë¤ó¤À¤í¤¦¤È »×¤¤¤Þ¤·¤¿¤¬¡¢¤È¤ê¤¢¤¨¤º¤³¤ì¤ÇÆ°¤¤¤¿µ²±¤¬¤¢¤ê¤Þ¤¹¡£ °ìÅٻ¤Æ¤ß¤Æ¤Ï¤É¤¦¤Ç¤·¤ç¤¦¤«¡£ ¸«Åö°ã¤¤¤Ç¤¢¤ì¤Ð¡¢¤´ÍƼϤò¡£ 2010ǯ2·î26Æü13:21 ohsawa sumiki <sumikio@g...>: > ¤³¤ó¤Ë¤Á¤Ï¡¢Âçß·¤Ç¤¹¡£ > > passenger´Ä¶¤Ç¥Æ¥¹¥È¤·¤è¤¦¤È¹Í¤¨¡¢ > ´Ä¶¤ò¹½ÃÛÃæ¤Ë¹Ô¤µÍ¤Ã¤Æ¤·¤Þ¤¿¤Î¤Ç¡¢ > ¤É¤Ê¤¿¤«¡¢¾Ü¤·¤¤Êý¤¬¤¤¤Þ¤·¤¿¤é¤È»×¤¤¡¢¥á¡¼¥ë¤·¤Æ¤¤¤Þ¤¹¡£ > > ¢£´Ä¶ > Red Hat Enterprise Linux ES release 4 > ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux] > Rails 2.3.5 > passenger(2.2.10) > ruby-oci8(2.0.3) > activerecord-oracle_enhanced-adapter(1.2.4) > instantclient_10_2 > > ¢£¸½¾Ý > mongrel¤ÇÀµ¾ï¤ËÆ°ºî¤ò³Îǧ¤·¤Æ¤¤¤ëAPP¤ò¡¢ > passenger¾å¤ÇÆ°¤«¤½¤¦¤È¡¢¤·¤¿¤È¤³¤í¡¢°Ê²¼¤Î¥¨¥é¡¼¤¬½Ð¤ë¡£ > -------------------------------------------- > Please install the oracle_enhanced adapter: `gem install > activerecord-oracle_enhanced-adapter` (ERROR: ActiveRecord > oracle_enhanced adapter could not load ruby-oci8 library. Please > install ruby-oci8 gem.) > -------------------------------------------- > > ¢£¤¤¤Þ¤Þ¤Ç¡¢»î¤·¤¿¤³¤È > °Ê²¼¤Î¥Ú¡¼¥¸¤ò³Îǧ > http://wiki.github.com/rsim/oracle-enhanced/troubleshooting > 1. Oracle Instant Client is installed correctly > 2. ruby-oci8 is installed correctly > 3. Verify that activerecord-oracle_enhanced-adapter is working from irb > ¾åµ¤¬Àµ¾ï¤ËÆ°ºî¤·¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¡£ > ¤Þ¤¿¡¢¤½¤Î²¼¤Ë¡¢¤º¤Ð¤ê¡¢¸½ºß¤Ï¤Þ¤Ã¤Æ¤¤¤ë¸½¾Ý¤¬½ñ¤¤¤Æ¤¢¤ë¤Î¤Ç¡¢³Î¤«¤Ë´Ä¶ÊÑ¿ô¤ÎÌäÂ꤫¤È¤ª¤â¤¤¡¢ > environment.rb¤ÇENV['LD_LIBRARY_PATH']¡¢ENV['PATH']¤òÀßÄꤷ¤Þ¤·¤¿¤¬¡¢Æ±¤¸¸½¾Ý¤Ç¤¹¡£ > Apache¤ÎºÆµ¯Æ°¸å³Îǧ¤·¤Æ¤¤¤Þ¤¹¡£ > > irb¤Ç°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¤¿¤¿¤¤¤¿¤È¤¤Ë¡¢LD_LIBRARY_PATH¤òÀßÄꤷ¤Æ¤¤¤Ê¤¤¾õÂÖ¤À¤È¡¢Æ±¤¸¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬ÊÖ¤µ¤ì¤ë¤Î¤Ç¡¢ > ¤³¤ì¤¬¸¶°ø¤À¤È»×¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¥¨¥é¡¼¤Î½Ð¤ëÉôʬ¤Çputs¤·¤ÆLD_LIBRARY_PATH¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤â¡¢Æ±¤¸¥¨¥é¡¼¤Ç¤·¤¿¡£ > -------------------------------------------------------------------------------- > require ¡Ærubygems¡Ç > gem ¡Æactiverecord¡Ç > gem ¡Æactiverecord-oracle_enhanced-adapter¡Ç > require ¡Æactiverecord¡Ç > ActiveRecord::Base.establish_connection(:adapter => ¡Èoracle_enhanced¡É, > :database => ¡Èdatabase¡É,:username => ¡Èuser¡É,:password => ¡Èpassword¡É) > ------------------------------------------------------------------------------- > > ¤Ê¤ª¡¢database.yml¤Çoracle_enhanced¤ò»ØÄꤷ¤¿¤À¤±¤Î¡¢´Êñ¤ÊAPP¤òºî¤Ã¤Æ¡¢¥Æ¥¹¥È¤ò¤·¤Æ¤ß¤Æ¤ª¤ê¡£ > ruby script/server¤Ç¤ÏÀµ¾ï¤ËÆ°ºî¤·¤Þ¤¹¡£ > ¤Þ¤¿¡¢environment.rb¤Ç > config.frameworks -= [:active_record] > ¤È¤·¡¢passenger¤ÇÁö¤é¤»¤¿¾ì¹ç¤Ë¤â¡¢Àµ¾ïÆ°ºî¤ò³Îǧ¤·¤Æ¤¤¤Þ¤¹¡£ > > > ¤É¤Ê¤¿¤«¡¢¤³¤ì¤ò»î¤·¤Æ¤ß¤í¤È¤¤¤Ã¤¿»ö¤Ç¤â¡¢Æ°¤«¤·¤¿·Ð¸³¤¬¤¢¤ë¤È¤«¡¢¥³¥á¥ó¥È¤¤¤¿¤À¤±¤ì¤Ð¡¢¹¬¤¤¤Ç¤¹¡£ > ¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£ > > -- > ML: rails@r... > »È¤¤Êý: http://QuickML.com/ > -- -- ==¢ö==¢ô==¢ö==¢ô==¢ö==¢ô==¢ö==¢ô==¢ö==¢ô==¢ö== ÊÒ»³ ²ÅÔ¢ (Yoshikuni Katayama) ͸²ñ¼Ò¥é¥¤¥È¥Ï¥¦¥¹ URL: http://www.l-house.net/ E-Mail:katayama@l... eNote for Community http://community.enote.jp/ eNote ASP¥µ¡¼¥Ó¥¹ ¢ª http://www.enote.jp/ ==¢õ==¢ö==¢õ==¢ö==¢õ==¢ö==¢õ==¢ö==¢õ==¢ö==¢õ== -- ML: rails@r... »È¤¤Êý: http://QuickML.com/
3391 2010-02-26 05:21 [sumikio@g... ] passenger + oracle_enhanced + oci8 3392 2010-02-26 06:15 ¨²[rust.stnard@g... ] -> 3393 2010-02-26 06:19 ¨±[katayama@l... ] 3394 2010-02-26 20:20 ¡¡¨±[sumikio@g... ] 3396 2010-03-02 02:19 ¡¡¡¡¨±[sumikio@g... ]