dphuang2 / PoGoBag

Analyze and share your Pokémon through a locally run server! Official Site access has been stopped as of 12/23/2016
146 stars 49 forks source link

Other install dependencies.... (on Ubuntu 14.04) #45

Open OldSkoooool opened 8 years ago

OldSkoooool commented 8 years ago

While trying to install this on Ubuntu, I noticed that during 'bundle install', it needs:

which I didn't have installed, and they weren't mentioned as requirements.

OldSkoooool commented 8 years ago

Digging through my history, I had to run all the following (for ubuntu 14.04)

# the packages I needed (I already had some of them installed...)
sudo apt-get install -y build-essential make curl git libssl-dev libreadline-dev zlib1g-dev libsqlite3-dev postgresql sqlite3 libpq-dev nodejs
# ruby 2.2.5 setup... Picking the default version of ruby would have been an easy 'apt-get install', but it was clear what version of ruby was required
cd; git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.2.5
rbenv global 2.2.5
ruby -v
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
# (did not need to install ruby-dev)