Skip to content

Instantly share code, notes, and snippets.

@ChangJoo-Park
Last active January 29, 2019 20:55
Show Gist options
  • Star 31 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
  • Save ChangJoo-Park/5443017 to your computer and use it in GitHub Desktop.
Save ChangJoo-Park/5443017 to your computer and use it in GitHub Desktop.
# Ubuntu 13.04 , linux mint install RVM with Ruby 2.0.0-p353 , Rails 4.0.0
# If you meet install errors, see abid-hussain's comment
sudo apt-get --force-yes install build-essential openssl libreadline6 libreadline6-dev curl git-core \
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev \
libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison
&&
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
&&
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
&&
source ~/.bash_profile
&&
rvm install 2.1.1p76
&&
rvm use --default 2.1.1p76
&&
ruby -v
&&
gem install rails --pre
&&
# I recommend compiling source code "http://nodejs.org" than using apt-get.
#sudo apt-get install nodejs
wget http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
tar -xvf node-v0.10.24.tar.gz
cd node-v0.10.24 && ./configure && make && sudo make install
@oseifrimpong
Copy link

Thanks, it worked for me perfectly.

@alispat
Copy link

alispat commented Jul 26, 2013

+1

@ChangJoo-Park
Copy link
Author

Update Ruby 2.0.0-p247 :-)

@levelone
Copy link

+1 works like a charm. cheers!

@ChangJoo-Park
Copy link
Author

-y to --force-yes
I use Linux Mint 15, have some problem about the authorization and recommend --force-yes option.
so I change option, work perfectly

@siyomai
Copy link

siyomai commented Aug 6, 2013

This is great! Thanks!

@jihchi
Copy link

jihchi commented Oct 21, 2013

+1!
Thanks!

@theshem
Copy link

theshem commented Oct 30, 2013

For those who get Error running 'requirements_debian_update_system ' error (like me):

Use the following: http://stackoverflow.com/a/19375476/1725764


Or:
Edit /etc/apt/sources.list and /etc/apt/sources.list.save
Comment the line refering to medibuntu out.

@ChangJoo-Park
Copy link
Author

Thanks HashemQoalami.

This gist tested on Ubuntu 12.04, 13.04, 13.10.

I dont meet error message like that.

Anybody meet Error running 'requirements_debian_update_system ' report me.

@theshem
Copy link

theshem commented Nov 10, 2013

@pcjpcj2 I tested this on Linux Mint 14 (Nadia).

@ChangJoo-Park
Copy link
Author

I tested on Linux Mint , works well.

fresh install linux mint, after this process..

@ChangJoo-Park
Copy link
Author

Updated for nodejs

because rails project need javascript runtime

@cipri-tom
Copy link

I some errors from the first line:

Package autoconf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package automake is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package ncurses-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libncurses5-dev:i386

E: Package 'autoconf' has no installation candidate
E: Package 'ncurses-dev' has no installation candidate
E: Package 'automake' has no installation candidate

I am on linux mint 15, equivalent of Ubuntu 13.04

@abid-hussain
Copy link

in most cases when error occurs during sudo apt-get update
the problem is with archive sources so run

sudo gedit /etc/apt/sources.list

sources.list file will be opened in text editor; go to "search" menu click on "Replace"
https://"LOOK FOR CHARACTERS like pk".archive.ubuntu with http://archive.ubuntu
save the file
run on terminal following command :

sudo apt-get update
thats it

@ChangJoo-Park
Copy link
Author

thanks abid-hussain

@ChangJoo-Park
Copy link
Author

update install nodejs.

@fenix011
Copy link

I was facing the same issue in Debian, and solved it in a more general way that abid-hussain suggests, by commenting out the given 'sources.list' entries which were leading to the error message

"E: Some index files failed to download. They have been ignored, or old ones used instead."

in order to get a 'clean'

'sudo apt-get update' process showing no errors

thanks abid-hussain

@jigarbhatt
Copy link

thanx, this is very useful for me :)

@Kerhoff
Copy link

Kerhoff commented Dec 24, 2014

+1 Thanks!!!

@neerajlohia
Copy link

getting Error running 'requirements_debian_update_system '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment