Skip to content

Instantly share code, notes, and snippets.

@maasdesigner
Created August 17, 2013 06:11
Show Gist options
  • Save maasdesigner/6255533 to your computer and use it in GitHub Desktop.
Save maasdesigner/6255533 to your computer and use it in GitHub Desktop.
maasdesigner@ubuntu:~/Documents$ ls
aslan
maasdesigner@ubuntu:~/Documents$ refinerycms metro
refinerycms: command not found
maasdesigner@ubuntu:~/Documents$ gem list --local
*** LOCAL GEMS ***
maasdesigner@ubuntu:~/Documents$ gem install refinerycms
Fetching: bundler-1.3.5.gem (100%)
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems
maasdesigner@ubuntu:~/Documents$ refinerycms my --heroku
refinerycms: command not found
maasdesigner@ubuntu:~/Documents$ gem install refinerycms
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems
maasdesigner@ubuntu:~/Documents$ rvm use --create ruby-1.9.3@refinery
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.
maasdesigner@ubuntu:~/Documents$ sudo gem install refinerycms
[sudo] password for maasdesigner:
Fetching: bundler-1.3.5.gem (100%)
Fetching: i18n-0.6.5.gem (100%)
Fetching: multi_json-1.7.9.gem (100%)
Fetching: activesupport-3.2.14.gem (100%)
Fetching: builder-3.0.4.gem (100%)
Fetching: activemodel-3.2.14.gem (100%)
Fetching: rack-1.4.5.gem (100%)
Fetching: rack-cache-1.2.gem (100%)
Fetching: rack-test-0.6.2.gem (100%)
Fetching: journey-1.0.4.gem (100%)
Fetching: hike-1.2.3.gem (100%)
Fetching: tilt-1.4.1.gem (100%)
Fetching: sprockets-2.2.2.gem (100%)
Fetching: erubis-2.7.0.gem (100%)
Fetching: actionpack-3.2.14.gem (100%)
Fetching: routing-filter-0.3.1.gem (100%)
Fetching: rails-i18n-0.7.4.gem (100%)
Fetching: refinerycms-i18n-2.1.0.gem (100%)
Fetching: arel-3.0.2.gem (100%)
Fetching: tzinfo-0.3.37.gem (100%)
Fetching: activerecord-3.2.14.gem (100%)
Fetching: awesome_nested_set-2.1.6.gem (100%)
Fetching: rake-10.1.0.gem (100%)
Fetching: rack-ssl-1.3.3.gem (100%)
Fetching: thor-0.18.1.gem (100%)
Fetching: json-1.8.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing refinerycms:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.8.0 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/json-1.8.0/ext/json/ext/generator/gem_make.out
maasdesigner@ubuntu:~/Documents$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
The following packages were automatically installed and are no longer required:
language-pack-kde-en language-pack-kde-en-base kde-l10n-engb
firefox-globalmenu
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
maasdesigner@ubuntu:~/Documents$ gem update
Updating installed gems
Updating actionpack
Fetching: minitest-4.7.5.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /var/lib/gems/1.9.1 directory.
maasdesigner@ubuntu:~/Documents$ sudo gem update
Updating installed gems
Updating actionpack
Fetching: minitest-4.7.5.gem (100%)
Fetching: atomic-1.1.13.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing actionpack:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:13:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/atomic-1.1.13 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/atomic-1.1.13/ext/gem_make.out
Updating activemodel
Building native extensions. This could take a while...
ERROR: Error installing activemodel:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:13:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/atomic-1.1.13 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/atomic-1.1.13/ext/gem_make.out
Updating activerecord
Building native extensions. This could take a while...
ERROR: Error installing activerecord:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:13:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/atomic-1.1.13 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/atomic-1.1.13/ext/gem_make.out
Updating activesupport
Building native extensions. This could take a while...
ERROR: Error installing activesupport:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:13:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/atomic-1.1.13 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/atomic-1.1.13/ext/gem_make.out
Updating arel
Fetching: arel-4.0.0.gem (100%)
Successfully installed arel-4.0.0
Updating builder
Fetching: builder-3.2.2.gem (100%)
Successfully installed builder-3.2.2
Updating rack
Fetching: rack-1.5.2.gem (100%)
Successfully installed rack-1.5.2
Updating sprockets
Fetching: sprockets-2.10.0.gem (100%)
Successfully installed sprockets-2.10.0
Updating tzinfo
Fetching: tzinfo-1.0.1.gem (100%)
TZInfo Timezone Data has Moved
==============================
The timezone data previously included with TZInfo as Ruby modules has now been
moved to a separate tzinfo-data gem. TZInfo also now supports using the system
zoneinfo files on Linux, Mac OS X and other Unix-like operating systems.
If you want to continue using the Ruby timezone modules, or you are using an
operating system that does not include zoneinfo files (such as
Microsoft Windows), you will need to install tzinfo-data by running:
gem install tzinfo-data
If tzinfo-data is installed then TZInfo will use the Ruby timezone modules.
Otherwise, it will attempt to find the system zoneinfo files. Please refer to
the TZInfo documentation (available from https://rubygems.org/gems/tzinfo) for
further information.
Successfully installed tzinfo-1.0.1
Gems updated: minitest, arel, builder, rack, sprockets, tzinfo
Installing ri documentation for minitest-4.7.5...
Installing ri documentation for arel-4.0.0...
Installing ri documentation for builder-3.2.2...
Installing ri documentation for rack-1.5.2...
Installing ri documentation for sprockets-2.10.0...
Installing ri documentation for tzinfo-1.0.1...
Installing RDoc documentation for minitest-4.7.5...
Installing RDoc documentation for arel-4.0.0...
Installing RDoc documentation for builder-3.2.2...
Installing RDoc documentation for rack-1.5.2...
Installing RDoc documentation for sprockets-2.10.0...
Installing RDoc documentation for tzinfo-1.0.1...
maasdesigner@ubuntu:~/Documents$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment