보통은 gem update --system 해준 뒤에 다시 설치하면 해결된다.
attachment_fu & passenger (permission problem) : http://www.viget.com/extend/rubyinline-in-shared-rails-environments/
fixing layout path issue in Rails 2.1
설치되어 있는 Gems 중에서 2.0.4 가 설치되어 있다면 1.1.4 로 낮추도록 한다.
sudo bash -c "ARCHFLAGS='-arch i386' gem install mysql --
--with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib
--with-mysql-include=/usr/local/mysql/include"
http://www.netmojo.ca/blog/2008/02/08/the-mysql-ruby-gem-on-leopard-client/
sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_configmysql connection 이 자꾸 끊어지는 문제 발생. MySql ruby binding 이 문제인데, Native-C mysql gems 을 설치하면 된다. 위와 같이 설치를 했는데도 자꾸 에러를 내는 경우에는 아래 링크를 참조해보니 각 OS 별로 해결책이 나와있다.
http://wiki.rubyonrails.org/rails/pages/Mysql+Connection+Problems
MacOS (Leopard) 에서는 다음과 같이 실행해본다.
원문 : http://www.ruby-forum.com/topic/129554
즉, sudo port install freeimage 하고 rm -rf ~/.ruby_inline 하고 다시 해보면 대략 잘 된단 말씀.
foobar0.814494196193978@deadend.teergrube.net spam-0.176877444478133@andreas-s.net -->
Full installation instructions (full credit goes to: Michael Steinfeld
for figuring this out)
1. I started with a clean install of Leopard.
2. Install macports for 10.4
3. Install the xcode dev tools from the Leopard disk - *be sure to
also install the 10.3 sdk from the xcode dev tools install*
4. sudo port install freeimage
5. cd /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_freeimage/
work/FreeImage
and change this:
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk
LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk
to this
LIBRARIES_PPC = -Wl,-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk/usr/
lib
LIBRARIES_I386 = -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk/usr/
lib
6. sudo port install freeimage
7. sudo gem install -y imagescience
8. cd /Library/Ruby/Gems/1.8/gems/RubyInline-3.6.4/lib
9. edit inline.rb
look for the line "flags = @flags.join(' ')"
and change it to "flags = @flags.join(' ') + ' -lruby'"
10. remove ~/.ruby_inline
Again, many thanks to Michael for figuring this all out!