Home  >  Q&A  >  body text

ruby - 64位OpenSuse系统安装'charlock_holmes'出错

charlock_holmes在64位的环境安装会有错误,网上有一些教程,我根据一下的教程安装,

sudo gem fetch charlock_holmes 
sudo gem unpack charlock_holmes-0.6.9.gem 
cd charlock_holmes-0.6.9/ 
sudo emacs ./ext/charlock_holmes/extconf.rb #{CWD}/dst/lib/libmagic.a改为#{CWD}/dst/lib64/libmagic.a 
sudo bundle gem . 
emacs lib/version.rb #将module后的.去掉, 否则ri doc安装报错 
sudo gem build charlock_holmes.gemspec 
su root 
ReportServer:/home/gitlab/gitlab/charlock_holmes-0.6.9 # gem install -l charlock_holmes-0.6.9.gem  
chmod 777 /usr/lib64/ruby/gems/1.9.1/gems/bundler-1.2.4/lib/bundler/settings.rb 
chmod 777 /home/gitlab/gitlab/charlock_holmes-0.6.9/.bundle/config 
sudo -u gitlab -H bundle install --deployment --without development test postgres

但是在执行最后根本没有 .bundle 文件夹在 /home/gitlab/gitlab/charlock_holmes-0.6.9/ 文件夹下面,是不是我的用户问题?

天蓬老师天蓬老师2712 days ago468

reply all(0)I'll reply

No reply
  • Cancelreply