Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Install on ubuntu 20.04 #32

Open
danikuci1 opened this issue Aug 26, 2020 · 14 comments
Open

Install on ubuntu 20.04 #32

danikuci1 opened this issue Aug 26, 2020 · 14 comments
Labels
documentation Improvements or additions to documentation help wanted

Comments

@danikuci1
Copy link

the file https://github.com/inoda/ontrack/blob/master/docs/ubuntu_install.md can use some updating. Specifically during the step install bundler + dependencies, I am able to execute the step gem install bundler but bundle install fails.

user@server:~$ gem install bundler
Successfully installed bundler-2.1.4
Parsing documentation for bundler-2.1.4
Done installing documentation for bundler after 2 seconds
1 gem installed
user@server:~$ bundle install
Could not locate Gemfile

@inoda
Copy link
Owner

inoda commented Aug 27, 2020

@danikuci1 You need to run it from the root directory after cloning this repo.

@inoda
Copy link
Owner

inoda commented Aug 27, 2020

@danikuci1 I didn't actually write the ubuntu install steps - try that out and if it works, I can update the docs.

@danikuci1
Copy link
Author

by root you mean / or you mean ~/.rbenv/plugins/ruby-build?

i tried both but same error. also tried rebooting and no dice :/

@danikuci1
Copy link
Author

or by this repo do you mean https://github.com/inoda/ontrack.git ?

'cause no where do the instructions say to clone that.

@danikuci1
Copy link
Author

danikuci1 commented Aug 27, 2020

heeeey that got a bit further. the installation begins but fails with this error

An error occurred while installing pg (1.2.3), and Bundler cannot continue.
Make sure that `gem install pg -v '1.2.3' --source 'https://rubygems.org/'` succeeds before bundling.

running the command gem install pg -v '1.2.3' --source 'https://rubygems.org/' also fails. here is its output

find_executable: checking for pg_config... -------------------- yes

--------------------

find_header: checking for libpq-fe.h... -------------------- no

"gcc -o conftest -I/home/user/.rbenv/versions/2.6.5/include/ruby-2.6.0/x86_64-linux -I/home/user/.rbenv/versions/2.6.5/include/ruby-2.6.0/ruby/backward -I/home/user/.rbenv/versions/2.6.5/include/ruby-2.6.0 -I. -I/usr/include/postgresql -I/home/user/.rbenv/versions/2.6.5/include    -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wrestrict -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable  -fPIC conftest.c  -L. -L/home/user/.rbenv/versions/2.6.5/lib -Wl,-rpath,/home/user/.rbenv/versions/2.6.5/lib -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L. -L/home/user/.rbenv/versions/2.6.5/lib  -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -Wl,-rpath,/home/user/.rbenv/versions/2.6.5/lib -L/home/user/.rbenv/versions/2.6.5/lib -lruby  -lm   -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"gcc -E -I/home/user/.rbenv/versions/2.6.5/include/ruby-2.6.0/x86_64-linux -I/home/user/.rbenv/versions/2.6.5/include/ruby-2.6.0/ruby/backward -I/home/user/.rbenv/versions/2.6.5/include/ruby-2.6.0 -I. -I/usr/include/postgresql -I/home/user/.rbenv/versions/2.6.5/include    -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wrestrict -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable  -fPIC  conftest.c -o conftest.i"
conftest.c:3:10: fatal error: libpq-fe.h: No such file or directory
    3 | #include <libpq-fe.h>
      |          ^~~~~~~~~~~~
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <libpq-fe.h>
/* end */

--------------------

@danikuci1
Copy link
Author

any ideas?

@inoda
Copy link
Owner

inoda commented Aug 29, 2020

@danikuci1 just googled your error and found this: https://stackoverflow.com/questions/13086073/rails-install-pg-cant-find-the-libpq-fe-h-header

sudo apt-get install libpq-dev

This is just a standard Rails 6 app using postgres, so if you run into other issues, you could probably easily Google answers to your questions.

@inoda inoda closed this as completed Aug 29, 2020
@danikuci1
Copy link
Author

So just to be clear, @inoda rather than bringing attention to an issue and possibly improving the project, you'd prefer folks just figure it out for themselves and not make a contribution?

You should probably wait to close this issue until after you update your document.

@inoda
Copy link
Owner

inoda commented Aug 30, 2020

@danikuci1 Fair point that I shouldn't have closed the issue - I will reopen it.

@inoda inoda reopened this Aug 30, 2020
@inoda
Copy link
Owner

inoda commented Aug 30, 2020

@danikuci1 As for "you'd prefer folks just figure it out for themselves and not make a contribution", my preference would be folks figure out themselves AND make a contribution.

This project isn't a primary focus for me, and I'm not familiar with installing Rails on every system out there.

@wisewtf
Copy link

wisewtf commented Mar 27, 2021

I'm sorry to leave a sore point on this issue but I've been extremely annoyed and frustrated as to how technical and unapproachable installing this application is for somewhat unexperienced people, either in general or, like in my case, to Ruby. And the documentation doesn't seem to help either, same goes for the Heroku deployment, which fails on building the application somewhere. That said, it is incredibly annoying mostly because this application looks amazing and I would love to make use of it, if only it wasn't so hard for me to actually get it working.

@inoda
Copy link
Owner

inoda commented Mar 28, 2021

@wisewtf I looked into the Heroku deploy failure. Looks like it's getting bitten by this: https://www.theregister.com/2021/03/25/ruby_rails_code/.

I'll fix the Heroku deploy soon and give ya a ping here.

As for "frustrated as to how technical and unapproachable installing this application is for somewhat unexperienced people, either in general or, like in my case, to Ruby", I'm happy to accept PRs/suggestions/whatever to improve the readme. It's a pretty out-of-the-box Rails 6 application so I (maybe wrongly) assumed there are plenty of blogs out there for various systems given how popular Rails is.

@wisewtf
Copy link

wisewtf commented Mar 29, 2021

@wisewtf I looked into the Heroku deploy failure. Looks like it's getting bitten by this: https://www.theregister.com/2021/03/25/ruby_rails_code/.

I'll fix the Heroku deploy soon and give ya a ping here.

As for "frustrated as to how technical and unapproachable installing this application is for somewhat unexperienced people, either in general or, like in my case, to Ruby", I'm happy to accept PRs/suggestions/whatever to improve the readme. It's a pretty out-of-the-box Rails 6 application so I (maybe wrongly) assumed there are plenty of blogs out there for various systems given how popular Rails is.

I will look into it better and see if I can manage to run it correctly on my own on Ubuntu 20.04 and write an eventual guide

@inoda
Copy link
Owner

inoda commented Mar 29, 2021

@wisewtf The Heroku Deploy option is fixed now.

@inoda inoda added documentation Improvements or additions to documentation help wanted labels Jul 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation help wanted
Projects
None yet
Development

No branches or pull requests

3 participants