ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] Как установить Redmine?
@ 2013-07-23  8:53 Михаил Радюк
  2013-07-23  9:51 ` Nikolay A. Fetisov
  2013-07-23 12:29 ` Илюхин Андрей
  0 siblings, 2 replies; 5+ messages in thread
From: Михаил Радюк @ 2013-07-23  8:53 UTC (permalink / raw)
  To: ALT Linux sysadmins' discussion

Здравствуйте!
Подскажите, как сейчас правильно устанавливать Redmine? Замечательная
инструкция на http://admdev.blogspot.ru/search?q=redmine уже устарела,
поиск по спискам рассылки конкретного ничего не дал.
Система - Сизиф (обновленный).
Что я делал:
# apt-get install ruby-tools ruby-stdlibs ruby-activerecord-sqlite3-adapter
# gem install rack
# gem install bundler
# gem install i18n
# useradd -d /opt/redmine -s /dev/null redmine
# su -l redmine -s /bin/bash
$ wget http://rubyforge.org/frs/download.php/77023/redmine-2.3.2.tar.gz
$ tar -zxf redmine-2.3.2.tar.gz
$ cd redmine-2.3.2
$ cat > config/database.yml << EOF
production:
  adapter: sqlite3
  dbfile: db/production.db
EOF

По-идее теперь нужно выполнить:
$rake db:migrate RAILS_ENV="production"
$ rake redmine:load_default_data RAILS_ENV="production"
$ ruby script/server -e production
но ошибка:
$ rake db:migrate RAILS_ENV="production"
Could not find gem 'rails (= 3.2.13) ruby' in the gems available on
this machine.
Run `bundle install` to install missing gems.

# bundle install
Bundler::GemfileNotFound

# gem install rails
Building native extensions.  This could take a while...
ERROR:  Error installing rails:
        ERROR: Failed to build gem native extension.

        /usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/include/ruby.h


Gem files will remain installed in
/usr/lib/ruby/gems/1.9.3/gems/atomic-1.1.10 for inspection.
Results logged to /usr/lib/ruby/gems/1.9.3/gems/atomic-1.1.10/ext/gem_make.out

# apt-get install libruby-devel
# apt-get install ruby-rails


[redmine@localhost redmine-2.3.2]$ bundle exec rake db:migrate
RAILS_ENV="production"
Could not find gem 'rails (= 3.2.13) ruby' in the gems available on
this machine.
Run `bundle install` to install missing gems.
[redmine@localhost redmine-2.3.2]$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.0)

Gem::Exception: Cannot load gem at
[/usr/lib/ruby/gems/1.9.3/cache/i18n-0.6.1.gem] in
/opt/redmine/redmine-2.3.2
An error occurred while installing i18n (0.6.1), and Bundler cannot continue.
Make sure that `gem install i18n -v '0.6.1'` succeeds before bundling.

gem install i18n из-под рута делал. Я явно что-то делаю не так.

-- 
С уважением, Михаил.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-23 13:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-23  8:53 [Sysadmins] Как установить Redmine? Михаил Радюк
2013-07-23  9:51 ` Nikolay A. Fetisov
2013-07-23 13:25   ` Михаил Радюк
2013-07-23 12:29 ` Илюхин Андрей
2013-07-23 13:28   ` Михаил Радюк

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git