우분투에서 openssl 사용에 문제가 있는 경우
http://blog.fiveruns.com/2008/3/3/compiling-ruby-rubygems-and-rails-on-ubuntu
로그인시에 지속적으로 500 에러가 나면서 YadisManager 어쩌구저쩌구 NameError 가 발생하는 경우
설치되어 있는 Gems 중에서 2.0.4 가 설치되어 있다면 1.1.4 로 낮추도록 한다.
Leopard 에서 mysql Gem 설치가 잘 안되는 경우 다음과 같은 옵션으로 설치해본다.
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_config
Mysql Lost Connection Problem
mysql connection 이 자꾸 끊어지는 문제 발생. MySql ruby binding 이 문제인데, Native-C mysql gems 을 설치하면 된다. 위와 같이 설치를 했는데도 자꾸 에러를 내는 경우에는 아래 링크를 참조해보니 각 OS 별로 해결책이 나와있다.
http://wiki.rubyonrails.org/rails/pages/Mysql+Connection+Problems
MacOS (Leopard) 에서는 다음과 같이 실행해본다.
- sudo install_name_tool -change /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib /usr/local/mysql/lib/libmysqlclient.15.dylib /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle
Leopard 에서 image_science plugin 사용시 오류가 발생할 때
원문 : 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!
(3)
(
