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

Problem installing on Ubuntu Server 16.04 #96

Open regul8or opened 7 years ago

regul8or commented 7 years ago

I'm trying to install to the fresh VM with Ubuntu Server 16.04. Commands are as follows:

sudo apt-get install ruby ruby-dev -y
sudo apt-get install nodejs -y
# git is already installed, but I'm following prescriptions
sudo apt-get install git -y
sudo apt-get install libsqlite3-dev build-essential patch zlib1g-dev liblzma-dev -y
# cannot install without sudo - don't have write permissions for the /var/lib/gems/2.3.0 directory
sudo gem install rails
sudo gem install bundler
git clone https://github.com/dphuang2/PoGoBag.git
cd PoGoBag/
bundle install --without production
  ...
  Installing google-protobuf 3.0.0
  ...
rake db:setup
rails s -b 0.0.0.0

When I try to access the host:3000 I see the following:

2016-09-30_231835

I don't know absolutely no RoR, but I think protobuf is installed:

$ bundle show protobuf
/var/lib/gems/2.3.0/gems/google-protobuf-3.0.0-x86_64-linux
$ bundle show google/protobuf
Could not find gem 'google/protobuf'.
theonaciri commented 7 years ago

In Gemfile, line 22 change the poke-go-api version to 0.2.1 and it should launch.

Note : I also had to add gem 'therubyracer' at line 2. I also had to set the ruby path in my .bashrc if which ruby >/dev/null && which gem >/dev/null; then PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH" fi

But I think you managed that part.

regul8or commented 7 years ago

@theonaciri thanks for the tip, almost there!

Changed poke-go-api version in Gemfile, added as you suggested gem 'therubyracer', and ruby path in .bashrc.

Start page was finally opened, called Google for auth token. When I entered the token in the field on the start page and clicked Authorize, I got this:

2016-10-24_141140

Any ideas?

theonaciri commented 7 years ago

Checkout lotze's pull request, he got it fixed : https://github.com/dphuang2/PoGoBag/pull/97 I copy pasted his change and I managed to make pogobag work :)

regul8or commented 7 years ago

Yes! Thank you