Foundation 5 SASS Install - thor gem crashing

I have been attempting to install Foundation 5 SASS on my LEMP server
for quite some time now, and have consistently been running into an
error with the thor gem. Attached you can see my first attempts at
installation, and below is my more recent attempt, where it is much more
obvious that thor failed (as I didn’t get nearly as far).



(AS ROOT)

adduser admin
usermod -a -G sudo admin
logout

(AS ADMIN)

sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove

sudo apt-get install git
sudo apt-get install ruby
sudo apt-get install nodejs
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo apt-get install npm

git --version
-----> git version 1.9.1
ruby --version
-----> ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
node --version
-----> v0.10.25
nodejs --version
-----> v0.10.25
npm --version
-----> 1.3.10

sudo npm install -g bower grunt-cli
bower --version
-----> 1.4.1

gem install foundation
-----> Fetching: thor-0.19.1.gem (100%)
-----> ERROR: While executing gem … (Errno::EACCES)
-----> Permission denied - /var/lib/gems

sudo gem install foundation

sudo gem install compass
-----> Fetching: sass-3.4.15.gem (100%)
-----> Fetching: multi_json-1.11.1.gem (100%)
-----> Fetching: compass-core-1.0.3.gem (100%)
-----> Fetching: compass-import-once-1.0.5.gem (100%)
-----> Fetching: chunky_png-1.3.4.gem (100%)
-----> Fetching: rb-fsevent-0.9.5.gem (100%)
-----> Fetching: ffi-1.9.10.gem (100%)
-----> Building native extensions. This could take a while…
-----> ERROR: Error installing compass.
-----> ERROR: Failed to build gem native extension.
-----> /usr/bin/ruby1.9.1 extconf.rb
-----> /usr/lib/ruby/1.9.1/rubygems/custome_require.rb:36:in ‘require’:
cannot load such file – mkmf (LoadError)
-----> from /usr/lib/ruby/1.9.1/rubygems/custome_require.rb:36:in
‘requre’
-----> from extconf.rb:4:in ‘’
-----> Gem files will remain installed in
/var/lib/gems/1.9.1/gems/ffi-1.9.10 for inspection
-----> Results logged to
/var/lib/gems/1.9.1/gems/ffi-1.9.10/ext/ffi_c/gem_make.out


As you can see, it first flared up at the install of foundation, but I
was able to move on by adding sudo. However, when I attempted to install
compass, it crashed once again.

Should I be using the LEMP 1-click install from Digital Ocean, or could
this be causing some of the errors?

I have posted on Stack Overflow and the Foundation forum, and have so
far not gotten any farther. Please let me know if I need to include any
other information!

Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs