Some troubles for FreBSD 8.3 + RM 2.1.2 or My 3 day war whith RM
Added by Vas Golof over 12 years ago
Sorry, it some chaos history by my memory.
Fail of RM 2.1.2:
I try use http://thinkcactus.com/posts/installing-redmine-2-1-2-on-freebsd-with-passenger-and-rvm#redmine for instruction
1. Used FreBSD 8.3-RELEASE + ports of: apache-2.2.1 + curl-7.24.0_1 + + mysql-server-5.0.91 + nginx-devel-0.9.4 + php5-5.3.5 + ruby-1.8.7.371,1
2. In rvm i try install ruby-1.9.3 - FAIL on compile - (error in code ?)
3. Ok, i install ruby-1.8.7.371,1, and in redmine-2.1.2 install bundler + bundle install --without development test postgresql sqlite + gem install mysql2 + create
DB and user + Change the adapter to mysql2. It was all ok
3. rake generate_secret_token - FAIL - no iconv.
OMG, but gem install iconv FAIL too, wtf ?
I install from ports iconv-2.0_3 + ruby18-iconv-1.8.7.371,1
which iconv
My = /usr/local/bin/iconv
rvm reinstall 1.8.7 "--with-iconv-dir=/usr/local"
rake generate_secret_token - ok
4. RAILS_ENV=production rake db:migrate - FAIL,
OMG2 Upon running rake db:migrate I get the error: "undefined method `accept' for nil:NilClass:" - code fail ?
5. i try use mysql adapter - fail to. + it need activerecord-mysql-adapter,
BUT gem install activerecord-mysql-adapter
ERROR: Could not find a valid gem 'activerecord-mysql-adapter' (>= 0) in any repository - WTF2 !?
------
ok, 2 days of fails and i was try RM 2.0.3:
1. cd /home/www/dist/redmine-2.0.3
2. rvm use 1.8.7 --default
Using /home/rvm/.rvm/gems/ruby-1.8.7-p371
3. gem install bundler
Successfully installed bundler-1.2.2
4. rvm gemset create redmine
gemset created redmine => /home/rvm/.rvm/gems/ruby-1.8.7-p371@redmine
5 rvm use 1.8.7@redmine --default
Using /home/rvm/.rvm/gems/ruby-1.8.7-p371 with gemset redmine
6. bundle install --without development test postgresql sqlite
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/home/rvm/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /home/www/dist/redmine-2.0.3/.bundle (Errno::EACCES)
ok (+ future permission problems)
chmod 777 redmine-2.0.3
chmod 777 redmine-2.0.3/config/initializers
chmod 777 redmine-2.0.3/log
chmod 777 redmine-2.0.3/db
7. RAILS_ENV=production rake db:migrate
rake aborted!
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (can't activate mysql (~> 2.8.1), already activated mysql-2.9.0. Make sure all dependencies are added to Gemfile.) - WTF3 !?
By forum + test i found solution:
gem install -v=2.8.1 mysql
gem uninstall -v=2.9.0 mysql
IN Gemfile of RM modify gem "mysql" to gem "mysql" , "2.8.1" (i try 2.9.0 before, but fail)
8. RAILS_ENV=production rake redmine:load_default_data
9. gem install passenger
Fetching: fastthread-1.0.7.gem (100%)
10. passenger-install-apache2-module
for apache:
LoadModule passenger_module /home/rvm/.rvm/gems/ruby-1.8.7-p371@redmine/gems/passenger-3.0.18/ext/apache2/mod_passenger.so
PassengerRoot /home/rvm/.rvm/gems/ruby-1.8.7-p371@redmine/gems/passenger-3.0.18
PassengerRuby /home/rvm/.rvm/wrappers/ruby-1.8.7-p371@redmine/ruby
<VirtualHost *:80>
ServerName www.yourhost.com
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /somewhere/public
<Directory /somewhere/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
Add Bingo - it installed >-< - i go sleep
ps. sorry for bad Eng, i am from Ru :-)