프로젝트

일반

사용자정보

plugin 설치중에 발생하는 문제

길 남석이(가) 2017-06-07에 추가

레드마인 버전은 2.6.10 입니다

 

plugin은 폴더에 제대로 집어넣었습니다.

그후 마이그레이션 중에 일어나는 문제인데요 마이그레이션을 위해

bundle exec rake redmine:plugins:migrate RAILS_ENV=production

이 명령어를 입력하면

Could not find activemodel-3.2.22.2 in any of the sources
Run `bundle install` to install missing gems.

위와 같은 명령어가 나옵니다

 

activemodel을 못찾는다고하는데 activemodel은 분명 설치했습니다. 해결법을 알려주십시오

 

 

 

bundle install 을 실행하면 


Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 10.5.0
Using i18n 0.6.11
Using multi_json 1.11.2
Using builder 3.0.4
Using erubis 2.7.0
Using journey 1.0.4
Using rack 1.4.7
Using hike 1.2.3
Using tilt 1.4.1
Using mime-types 1.25.1
Using polyglot 0.3.5
Using arel 3.0.3
Using tzinfo 0.3.44
Using json 1.8.3
Using thor 0.19.1
Using bundler 1.15.1
Using coderay 1.1.1
Using request_store 1.0.5
Using htmlentities 4.3.1
Using net-ldap 0.3.1
Using ruby-openid 2.3.0
Fetching rmagick 2.13.4
Installing rmagick 2.13.4 with native extensions
Fetching redcarpet 3.3.4
Installing redcarpet 3.3.4 with native extensions
Fetching mysql2 0.3.20
Installing mysql2 0.3.20 with native extensions
Using activesupport 3.2.22.2
Using rack-cache 1.5.1
Using rack-test 0.6.3
Using rack-ssl 1.3.4
Using sprockets 2.2.3
Using treetop 1.4.15
Using rdoc 3.12.2
Using rbpdf 1.18.7
Fetching rack-openid 1.4.2
Installing rack-openid 1.4.2
Errno::EACCES: Permission denied @ rb_sysopen -
/home/redmine/redmine-2.6.10-4/apps/redmine/htdocs/vendor/bundle/ruby/2.3.0/gems/rmagick-2.13.4/.gitignore
An error occurred while installing rmagick (2.13.4), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.4'` succeeds before bundling.

 

이렇게 나옵니다.


답글 (6)

RE: plugin 설치중에 발생하는 문제 - 커뮤니티 관리자이(가) 2017-06-08에 추가

안녕하세요? 커뮤니티 관리자입니다.

위의 에러는 rmagick 이라는 gem이 설치되지 않아서 에러가 발생하고 있습니다.

아래와 같이 실행해서 rmagick를 설치해 보시고 다시 bundle install를 하시면 됩니다.

CentOS인 경우입니다.

#yum install ImageMagick
#yum install ImageMagick-devel

RE: plugin 설치중에 발생하는 문제 - 길 남석이(가) 2017-06-08에 추가

Ubuntu 기반이구요 gem install rmagick 명령어를 이용해 rmagick을 설치해도 bundle install 이 되지 않습니다 ㅠ

RE: plugin 설치중에 발생하는 문제 - 오 재복이(가) 2017-06-08에 추가

Ubuntu라면 아래의 명령어로 설치하셔야 합니다.

# apt-get install -y imagemagick libmagick++dev

# gem install rmagick

이렇게 해도 안되면 bundle install --without test development postgresql rmagick로 해서 필요없는 것은 설치하지 않도록 하는 방법도 있습니다.

참고로 rmagick는 이미지관련 gem입니다.

RE: plugin 설치중에 발생하는 문제 - 길 남석이(가) 2017-06-08에 추가

 

# apt-get install -y imagemagick libmagick++dev 이명령어는 패키지를 찾을수 없다고 나옵니다.

 

without을 이용하여 다시 시도했더니 redcarpet관련하여

An error occurred while installing redcarpet (3.3.4), and Bundler
cannot continue.
Make sure that `gem install redcarpet -v '3.3.4'` succeeds before bundling.

이런 에러가 나오고 redcarpet을 without 을 이용해서 다시 시도해도 똑같은 에러가 뜹니다.

 

플러그인 마이그레이션할때 

bundle exec rake redmine:plugins:migrate RAILS_ENV=production

이 명령어를 입력하면

Could not find activemodel-3.2.22.2 in any of the sources
Run `bundle install` to install missing gems.

이게 뜨는데 activemodel 만 설치해주면 되는거 아닌가요 편리한 기능을 쓰려고 지금 몇시간째 해매고 있는지 모르겠습니다 ㅠㅠ

 

 

RE: plugin 설치중에 발생하는 문제 - 김 *덕이(가) 2017-06-08에 추가

아래 site에 Ubuntu 에서  rmagick  설치하는 방법이 나와있네요

https://stackoverflow.com/questions/3704919/installing-rmagick-on-ubuntu

RE: plugin 설치중에 발생하는 문제 - 길 남석이(가) 2017-06-09에 추가

Rmagick을 설치했더니 이번엔 redcarpet문제라고 뜹니다...

마이그레이션시 나오는오류는 여전히 아래와 같습니다.

bundle exec rake redmine:plugins:migrate RAILS_ENV=production

이 명령을 타이핑하면 아래와 같이 나옵니다


Could not find activemodel-3.2.22.2 in any of the sources
Run `bundle install` to install missing gems.

 

gem install activemodel 을 이용하여 activemodel을 설치하였는데도 이 현상이 발생합니다.

 

김현덕님의 링크에서 rmagick을 설치후 bundle install 을 하면 

Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Using rake 10.5.0
Using i18n 0.6.11
Using multi_json 1.11.2
Using builder 3.0.4
Using erubis 2.7.0
Using journey 1.0.4
Using rack 1.4.7
Using hike 1.2.3
Using tilt 1.4.1
Using mime-types 1.25.1
Using polyglot 0.3.5
Using arel 3.0.3
Using tzinfo 0.3.44
Using json 1.8.3
Using thor 0.19.1
Using bundler 1.15.1
Using coderay 1.1.1
Using request_store 1.0.5
Using htmlentities 4.3.1
Using net-ldap 0.3.1
Using ruby-openid 2.3.0
Fetching redcarpet 3.3.4
Installing redcarpet 3.3.4 with native extensions
Fetching mysql2 0.3.20
Installing mysql2 0.3.20 with native extensions
Using activesupport 3.2.22.2
Using rack-cache 1.5.1
Using rack-test 0.6.3
Using rack-ssl 1.3.4
Using sprockets 2.2.3
Using treetop 1.4.15
Using rdoc 3.12.2
Using rbpdf 1.18.7
Using rack-openid 1.4.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/home/redmine/redmine-2.6.10-4/apps/redmine/htdocs/.bundle/ruby/2.3.0/gems/redcarpet-3.3.4/ext/redcarpet
/usr/bin/ruby2.3 -r ./siteconf20170609-12225-1tzyom0.rb extconf.rb
creating Makefile

current directory:
/home/redmine/redmine-2.6.10-4/apps/redmine/htdocs/.bundle/ruby/2.3.0/gems/redcarpet-3.3.4/ext/redcarpet
make "DESTDIR=" clean

current directory:
/home/redmine/redmine-2.6.10-4/apps/redmine/htdocs/.bundle/ruby/2.3.0/gems/redcarpet-3.3.4/ext/redcarpet
make "DESTDIR="
make: *** 'autolink.o'에서 필요한 '/usr/lib/ruby/include/ruby/ruby.h' 타겟을 만 들 규칙이
없습니다.  멈춤.

make failed, exit code 2

Gem files will remain installed in
/home/redmine/redmine-2.6.10-4/apps/redmine/htdocs/.bundle/ruby/2.3.0/gems/redcarpet-3.3.4
for inspection.
Results logged to
/home/redmine/redmine-2.6.10-4/apps/redmine/htdocs/.bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/redcarpet-3.3.4/gem_make.out

An error occurred while installing redcarpet (3.3.4), and Bundler
cannot continue.
Make sure that `gem install redcarpet -v '3.3.4'` succeeds before bundling.

In Gemfile:
  redcarpet

 

이렇게 뜨고 설치가 되지 않습니다,..

    (1-6/6)
    클립보드 이미지 추가 (최대 크기: 500 MB)