Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 在文件同步之前启动设置_Ruby_Linux_Ubuntu_Bundler_Vagrant - Fatal编程技术网

Ruby 在文件同步之前启动设置

Ruby 在文件同步之前启动设置,ruby,linux,ubuntu,bundler,vagrant,Ruby,Linux,Ubuntu,Bundler,Vagrant,我第一次和vagrant玩,我想把它加入到我们相当大的项目中。如果我在文件同步后运行我编写的引导shell文件,那么一切都很好。然而,在破坏虚拟机并第一次执行“漫游”操作后,我的Ubuntu 12.04 64位计算机一旦点击bundle install Bundler::GemfileNotFound Stderr from the command: stdin: is not a tty dpkg-preconfigure: unable to re-open stdin: No suc

我第一次和vagrant玩,我想把它加入到我们相当大的项目中。如果我在文件同步后运行我编写的引导shell文件,那么一切都很好。然而,在破坏虚拟机并第一次执行“漫游”操作后,我的Ubuntu 12.04 64位计算机一旦点击
bundle install

Bundler::GemfileNotFound


Stderr from the command:

stdin: is not a tty
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
我假设这是因为它在我的
Gemfile
/
Gemfile.lock
完成同步之前到达了这个位置。情况可能不是这样,但似乎是这样。我该怎么解决这个问题

这是我的完整boostrap.sh脚本,它在v up上运行

#!/usr/bin/env bash

apt-get update
apt-get -y install git

# Required for nokogiri
apt-get -y install libxslt-dev libxml2-dev

# Required for eventmachine
apt-get -y install build-essential

# Required for typhoeus
apt-get -y install libcurl3-dev

apt-get -y install ruby1.9.3
gem install bundler
bundle install

我猜你是在用流浪者的外壳供应器运行脚本

你的gem文件在哪里?它很可能与主机上的
vagrant文件
位于同一文件夹中,因此请尝试添加:

cd /vagrant
捆绑安装之前
,它应该可以工作