ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Михаил Радюк" <torabora08@gmail.com>
To: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
Subject: [Sysadmins] Как установить Redmine?
Date: Tue, 23 Jul 2013 12:53:23 +0400
Message-ID: <CAH5o5+G6+w3gyd-UaowYDZWgt6_PqHq-22RZz64UFA7sAat1jw@mail.gmail.com> (raw)

Здравствуйте!
Подскажите, как сейчас правильно устанавливать 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 из-под рута делал. Я явно что-то делаю не так.

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


             reply	other threads:[~2013-07-23  8:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-23  8:53 Михаил Радюк [this message]
2013-07-23  9:51 ` Nikolay A. Fetisov
2013-07-23 13:25   ` Михаил Радюк
2013-07-23 12:29 ` Илюхин Андрей
2013-07-23 13:28   ` Михаил Радюк

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH5o5+G6+w3gyd-UaowYDZWgt6_PqHq-22RZz64UFA7sAat1jw@mail.gmail.com \
    --to=torabora08@gmail.com \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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