1 download ruby 1.9
tar ...
./configure
make
sudo make install
2. download rubygem
tar ...
ruby setup.rb
3. gem update-system
4. sudo gem install rails --include-dependenices
5. sudo gem install active-support
6.
sudo apt-get install libmysqlclient15-dev
sudo gem install mysql (failed!)
-----------------------------------------
mysql.c:6:21: error: version.h: No such file or directory
mysql.c: In function 'make_field_obj':
mysql.c:185: warning: unused variable 'hash'
mysql.c: In function 'escape_string':
---------------------------------------------
download mysql-ruby-2.8.1.tar.gz
tar ...
ruby extconf.rb install mysql -- --with-mysql-config
make
sudo make install
Error:
…/custom_require.rb:27:in `gem_original_require’: no such file to load — net/https (MissingSourceFile)
`require_frameworks': no such file to load -- net/https (RuntimeError)
Solution:
$sudo apt-get install libopenssl-ruby
阅读(948) | 评论(0) | 转发(0) |