forumone / web-starter

Starting place for developing Drupal, Wordpress and other web applications
http://forumone.github.io/web-starter/
22 stars 11 forks source link

Cannot bundle install #243

Closed johnbburg closed 8 years ago

johnbburg commented 8 years ago

Compass doesn't seem to install on the project.

[vagrant@localhost my-theme]$ bundle install
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Rubygems 1.3.7 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
/var/tmp/sclrX7ble: line 18: -p: command not found

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.8/cache/sass-3.4.19.gem] in /vagrant/htdocs/sites/all/themes/my-theme
/var/tmp/sclgb8yzf: line 18: -p: command not found

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.8/cache/chunky_png-1.3.4.gem] in /vagrant/htdocs/sites/all/themes/my-theme
/var/tmp/scl8we9uY: line 18: -p: command not found
Installing multi_json 1.11.2
/var/tmp/sclVbNT4q: line 18: -p: command not found
/var/tmp/sclICGU7u: line 18: -p: command not found
/var/tmp/scleBHGjx: line 18: -p: command not found
/var/tmp/scloH6cea: line 18: -p: command not found

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.8/cache/rb-fsevent-0.9.6.gem] in /vagrant/htdocs/sites/all/themes/my-theme
/var/tmp/sclGtCPe7: line 18: -p: command not found

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.8/cache/ffi-1.9.10.gem] in /vagrant/htdocs/sites/all/themes/my-theme
Using bundler 1.12.5
An error occurred while installing sass (3.4.19), and Bundler cannot continue.
Make sure that `gem install sass -v '3.4.19'` succeeds before bundling.

Shouldn't this install during provisioning anyway?

I noticed that ruby 1.9.3-551 was not installed via rbenv, so I went ahead and installed it.

$ rbenv versions
rbenv: version `1.9.3-p551' is not installed (set by /vagrant/.ruby-version)
  system
  1.9.3

Although I didn't have access to rbenv install either.

[vagrant@localhost vagrant]$ rbenv install
rbenv: no such command `install'

So I added the ruby-build plugin.

[vagrant@localhost .rbenv]$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
Initialized empty Git repository in /home/vagrant/.rbenv/plugins/ruby-build/.git/
remote: Counting objects: 6531, done.
remote: Total 6531 (delta 0), reused 0 (delta 0), pack-reused 6531
Receiving objects: 100% (6531/6531), 1.26 MiB | 127 KiB/s, done.
Resolving deltas: 100% (3778/3778), done.

Then I could install 1.9.3-p551

$ rbenv install
Downloading yaml-0.1.6.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/7da6971b4bd08a986dd2a61353bc422362bd0edcc67d7ebaac68c95f74182749
Installing yaml-0.1.6...
Installed yaml-0.1.6 to /home/vagrant/.rbenv/versions/1.9.3-p551

Downloading ruby-1.9.3-p551.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p551.tar.bz2
Installing ruby-1.9.3-p551...

WARNING: ruby-1.9.3-p551 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.

Installed ruby-1.9.3-p551 to /home/vagrant/.rbenv/versions/1.9.3-p551

But now it chokes at installing rake:

bundle install
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies...........
Rubygems 1.3.7 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
/var/tmp/sclmr0N9l: line 18: -p: command not found

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.8/cache/rake-10.3.2.gem] in /vagrant
/var/tmp/scl1V1jEs: line 18: -p: command not found

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.8/cache/sass-3.4.22.gem] in /vagrant
Using i18n 0.6.0 (was 0.6.11)
/var/tmp/sclniSJo5: line 18: -p: command not found

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.8/cache/net-ssh-2.9.2.gem] in /vagrant
/var/tmp/sclGWd0s2: line 18: -p: command not found

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.8/cache/chunky_png-1.3.6.gem] in /vagrant
Using multi_json 1.12.1
/var/tmp/sclqrOjjw: line 18: -p: command not found

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.8/cache/rb-fsevent-0.9.7.gem] in /vagrant
/var/tmp/sclmYAB4e: line 18: -p: command not found

Gem::Exception: Cannot load gem at [/usr/lib/ruby/gems/1.8/cache/ffi-1.9.14.gem] in /vagrant
Using eventmachine 0.12.10
Using mime-types 1.25.1
Using tilt 1.4.0
Using bundler 1.12.5
An error occurred while installing rake (10.3.2), and Bundler cannot continue.
Make sure that `gem install rake -v '10.3.2'` succeeds before bundling.

Which I can still install separately:

[vagrant@localhost vagrant]$ gem install rake -v '10.3.2'
Fetching: rake-10.3.2.gem (100%)
Successfully installed rake-10.3.2
1 gem installed
Installing ri documentation for rake-10.3.2...
Installing RDoc documentation for rake-10.3.2...

I also tried updating rubygems following the advice of some random SO post. http://stackoverflow.com/questions/18366322/an-error-occurred-while-installing-rake-10-1-0-and-bundler-cannot-continue

[vagrant@localhost vagrant]$ gem --version
1.8.23.2
[vagrant@localhost vagrant]$ gem update --system
...
[vagrant@localhost vagrant]$ gem --version
2.6.6

But I get the same problem running bundle install. Anyone have any ideas?

Also, I hate ruby.

johnbburg commented 8 years ago

Just remembered that we should file issues over at https://github.com/forumone/generator-web-starter, so I'm moving this issue to that queue.

johnbburg commented 8 years ago

https://github.com/forumone/generator-web-starter/issues/63