Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup Ubuntu 14.04 Trusty Tahr Discussion

Chris Oliver asked in General

Hello, im on elementary os freya, i did this steps:

cd
git clone git://github.com/sstephenso... .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone git://github.com/sstephenso... ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/sstephen... ~/.rbenv/plugins/rbenv-gem-rehash

but when i try to do:

rbenv install 2.2.2

i get this message:

The program 'rbenv' is currently not installed. You can install it by typing:

apt-get install rbenv

any idea?

Reply

You might need to restart your terminal. Sometimes the PATH doesn't get set correctly so restarting the terminal helps or re-running these commands (namely the "echo" lines).

Reply
rorikurniadi rorikurniadi

cool, it's work

Reply

how to repair this error; i want eliminate this configuration and I want to clear all settings and leave as if nothing had happened

bash: /home/nitroherman/.bashrc: línea 168: error sintáctico cerca del elemento inesperado `PATH="$HOME/.rbenv/bin:$PATH"'

bash: /home/nitroherman/.bashrc: línea 168: `esacexport PATH="$HOME/.rbenv/bin:$PATH"'

Reply

You can just remove that line from the bashrc file. I believe it should be

export PATH="$HOME/.rbenv/bin:$PATH"

Reply
Joakim Wahlgren Joakim Wahlgren

Great tutorial! Thanks for putting the time and effort into creating it for us new to the wonderful world of Ruby on rails.

Reply
Jeremiah Wibberding Jeremiah Wibberding

good guide!

Reply
Julio Cesar G F Julio Cesar G F

Hi! Can you help me?!

i can't fix this:
$ rake db:create
Could not find gem 'sass-rails (~> 4.0.3) ruby' in any of the gem sources listed in your Gemfile or installed on this machine.
Run `bundle install` to install missing gems.

--- ERROR REPORT TEMPLATE -------------------------------------------------------
- What did you do?

I ran the command `/usr/local/rvm/gems/ruby-2.2.1/bin/bundle install`

- What did you expect to happen?

I expected Bundler to...

- What happened instead?

Instead, what actually happened was...

Error details

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
Unfortunately, an unexpected error occurred, and Bundler cannot continue.

I'll go to:
https://github.com/bundler/...
but can't find this problem

Reply

Thank you so much. Finally got my ruby server to run on Ubuntu

Reply
dijee ponsel dijee ponsel

root@squid35:/home/dijee# gem install bundler
ERROR: While executing gem ... (ArgumentError)
IPv4 address expects 4 bytes but 1 bytes

Reply

Sounds like you've got an issue with your internet connection.

http://stackoverflow.com/qu...

Reply
Junaid Farooq Junaid Farooq

I dont know who i behind this work. but its awesome. May Allah give you more and more success in you whole life. Keep you away from every thing which cause harm for you. Ameen.

Reply
Kushagra Sharma Kushagra Sharma

you may want to use ruby version control ....... see here how to install RVM http://buffercode.in/instal...

Reply
TacoMeatDaGod TacoMeatDaGod

I'm entering: cat ~/.ssh/id_rsa.pub

and I get this error message

cat: /home/apacheomega/.ssh/id_rsa.pub: No such file or directory

what am I doing wrong???

Reply
Ernest Aleixandre Ernest Aleixandre

I watched the installation progress to see what URLs were used for download. I noticed Ruby was being downloaded from cloudfront.net:

http://dqw8nmjcqpjn7.cloudf... . I pasted the URL in VirusTotal and all came back clean except the AutoShun scan which said it was a malicious site. I'm assuming this is a false positive?

Anyone else have any comments or concerns about this?

ClamAV scan of the filesystem came back clean afterwards.

Thanks for the detailed, seamless instructions!

Reply

That should be good. Cloudfront is a CDN so it caches files so you can download them faster around the world. It's something you have to configure so Ruby's website is probably forwarding you to that. Good to verify that it's not malicious in any case!

Reply

GPG signature verification failed. Where is the problem?

Reply
Coire Walker Coire Walker

I'm having trouble at the git install section, after these steps:

git config --global color.ui true
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR@EMAIL.com"
ssh-keygen -t rsa -C "YOUR@EMAIL.com"

After the four consecutive steps I am asked where to save my file. When I enter a destination folder it fails. Am I supposed to create a file for it to be saved in? If so, how etc? Thanks in advance.

Reply

You want to save it to the default location by just hitting ENTER. What's the failure say?

Reply
Ariel Cabib Ariel Cabib

Awesome tutorial.

You're missing '~' in the Installing Ruby section, after the 'cd', in the 'Using rbenv' code snippet.

Reply

Fun fact! You don't need ~ because it will default to that if you don't put it in. I learned that not too long ago. :)

Reply

--no-ri and --no-rdoc are deprecated. You might want to update it to --no-document.

Reply

Yes indeed! I noticed that recently. Thanks for the reminder!

Reply
Brian Todoroff Brian Todoroff

For postgresql you need to make sure the user your create matches the username you are logged in as. If not you'll run into errors that "Peer authentication failed for user..."

Reply

Thanks heaps. Solved my problem.

Reply
Suhail Ameen Suhail Ameen

Thanks for the detailed step by step guide .....

Reply

Hey Guys! Nice post, I have some problems when I tried to run rake db:schema:load, due to some postgres missing plugins, to solve that I had to install postgres-contrib

so, it's better use
sudo apt-get install postgresql postgresql-contrib libpq-dev

instead of
sudo apt-get install postgresql libpq-dev

;)

Reply
Joshua Rumbut Joshua Rumbut

Using Ubuntu 14.04 (Trusty) and RVM I needed install ruby with

rvm install 2.2.3 --disable-binary #or if you already did install: rvm reinstall 2.2.3 --disable-binary

in order to have the development headers available for nokogiri et al.

Thanks for the guide!

Reply

Hi @joshuarumbut:disqus , thanks for this comment! helped a lot.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,584+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.