2014-03-13 6 views
3

VirtualBox를 사용하는 Windows 호스트와 Ubuntu 게스트가 있습니다.Gem을 공유 VirtualBox 폴더에 설치하지 못했습니다.

우리는 보석을 우분투의 개별 보석에 잘 설치할 수 있습니다. 실행시 Ubuntu에서 공유 폴더에있는 앱의 경우

의 앱에는 실패합니다.

Gem::Ext::BuildError: ERROR: Failed to build gem native extension. 

    /usr/local/rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb 
/var/www/chef-playground/vendor/ruby/2.1.0/gems/mini_portile-0.5.2/lib/mini_portile.rb:226: warning: Insecure world writable dir /opt/chef/embedded/bin in PATH, mode 040777 
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-linux-gnu/ports/libxml2/2.8.0... OK 
Running 'configure' for libxml2 2.8.0... OK 
Running 'compile' for libxml2 2.8.0... OK 
Running 'install' for libxml2 2.8.0... OK 
Activating libxml2 2.8.0 (from /var/www/chef-playground/vendor/ruby/2.1.0/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxml2/2.8.0)... 
Extracting libxslt-1.1.26.tar.gz into tmp/x86_64-linux-gnu/ports/libxslt/1.1.26... OK 
Running 'configure' for libxslt 1.1.26... OK 
Running 'compile' for libxslt 1.1.26... OK 
Running 'install' for libxslt 1.1.26... OK 
Activating libxslt 1.1.26 (from /var/www/chef-playground/vendor/ruby/2.1.0/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxslt/1.1.26)... 
checking for libxml/parser.h... yes 
checking for libxslt/xslt.h... yes 
checking for libexslt/exslt.h... yes 
checking for iconv_open() in iconv.h... yes 
checking for xmlParseDoc() in -lxml2... yes 
checking for xsltParseStylesheetDoc() in -lxslt... yes 
checking for exsltFuncRegister() in -lexslt... yes 
checking for xmlHasFeature()... yes 
checking for xmlFirstElementChild()... yes 
checking for xmlRelaxNGSetParserStructuredErrors()... yes 
checking for xmlRelaxNGSetParserStructuredErrors()... yes 
checking for xmlRelaxNGSetValidStructuredErrors()... yes 
checking for xmlSchemaSetValidStructuredErrors()... yes 
checking for xmlSchemaSetParserStructuredErrors()... yes 
creating Makefile 

Text file busy @ unlink_internal - ./siteconf20140313-27134-167s4eq.rb 

Gem files will remain installed in /var/www/chef-playground/vendor/ruby/2.1.0/gems/nokogiri-1.6.1 for inspection. 
Results logged to /var/www/chef-playground/vendor/ruby/2.1.0/extensions/x86_64-linux/2.1.0/nokogiri-1.6.1/gem_make.out 
An error occurred while installing nokogiri (1.6.1), and Bundler cannot continue. 
Make sure that `gem install nokogiri -v '1.6.1'` succeeds before bundling 

답변

0

스택 추적의 마지막 줄에는 설명이 있습니다. 페도라 20 일을 사용하는 동안

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

은 내가 nokogiri 사이트에 그것을 극복하는 방법에 대한 좋은 설명이 있습니다 같은 오류 다 퉜다.

나는 다음이 명령을 실행 한 후 bundle install는 일 :

sudo yum install -y rubygem-nokogiri 
sudo yum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel 
0

그것은이 때문에 수 있습니다 :

Text file busy @ unlink_internal - ./siteconf20140313-27134-167s4eq.rb 

이 sharedfolders에 관해서 분명히 기존의 문제가, 버추얼 및 Windows 호스트. Window의 공격적인 파일 처리에 대한 비난이 제기 된 것 같습니다. bundle install --path ~/vendor :

Ansible text file busy error

https://unix.stackexchange.com/questions/52951/gedit-wont-save-a-file-on-a-virtualbox-share-text-file-busy

당신은 당신의 홈 디렉토리에 보석을 설치할 게스트 컴퓨터에 대신하여 sharedfolder 즉 내부 어딘가에 보석을 설치하여 해결 방법을 시도 할 수 있습니다

https://github.com/mitchellh/vagrant/issues/2282

. 올바른 디렉토리를 가리키고 있는지 확인하기 위해 .bundle/config을 재구성해야 할 수도 있습니다.

관련 문제