{"action":"opened","issue":{"url":"https://api.github.com/repos/thiago-sydow/controle-de-ponto/issues/249","repository_url":"https://api.github.com/repos/thiago-sydow/controle-de-ponto","labels_url":"https://api.github.com/repos/thiago-sydow/controle-de-ponto/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/thiago-sydow/controle-de-ponto/issues/249/comments","events_url":"https://api.github.com/repos/thiago-sydow/controle-de-ponto/issues/249/events","html_url":"https://github.com/thiago-sydow/controle-de-ponto/issues/249","id":484033100,"node_id":"MDU6SXNzdWU0ODQwMzMxMDA=","number":249,"title":"Your Ruby version is 2.5.1, but your Gemfile specified 2.5.3 I try downgrade","user":{"login":"mateusgomesti","id":35661150,"node_id":"MDQ6VXNlcjM1NjYxMTUw","avatar_url":"https://avatars2.githubusercontent.com/u/35661150?v=4","gravatar_id":"","url":"https://api.github.com/users/mateusgomesti","html_url":"https://github.com/mateusgomesti","followers_url":"https://api.github.com/users/mateusgomesti/followers","following_url":"https://api.github.com/users/mateusgomesti/following{/other_user}","gists_url":"https://api.github.com/users/mateusgomesti/gists{/gist_id}","starred_url":"https://api.github.com/users/mateusgomesti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateusgomesti/subscriptions","organizations_url":"https://api.github.com/users/mateusgomesti/orgs","repos_url":"https://api.github.com/users/mateusgomesti/repos","events_url":"https://api.github.com/users/mateusgomesti/events{/privacy}","received_events_url":"https://api.github.com/users/mateusgomesti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-22T14:35:51Z","updated_at":"2019-08-22T14:35:51Z","closed_at":null,"author_association":"NONE","body":"Your Ruby version is 2.5.1, but your Gemfile specified 2.5.3\r\nI try upgrade version,  but, dosnt work, later I try downgrade on GemFile verstion to 2.5.1\r\n```\r\nubuntu@ip-172-31-41-30:/var/www/html/controle-de-ponto$ rbenv install rbx-2.5.3\r\nDownloading rubinius-2.5.3.tar.bz2...\r\n-> https://dqw8nmjcqpjn7.cloudfront.net/9af4d6e9d1e78a586579c86b9eb9a082cb863885d4a7cf33989d73280461e5fc\r\nInstalling rubinius-2.5.3...\r\n\r\nWARNING: rubinius-2.5.3 is past its end of life and is now unsupported.\r\nIt no longer receives bug fixes or critical security updates.\r\n\r\n\r\nBUILD FAILED (Ubuntu 18.04 using ruby-build 20170726)\r\n\r\nInspect or clean up the working tree at /tmp/ruby-build.20190822142506.20988\r\nResults logged to /tmp/ruby-build.20190822142506.20988.log\r\n\r\nLast 10 log lines:\r\nInstalling rubinius-toolset 2.3.1\r\nInstalling rubinius-build_tools 2.0.0\r\nUpdating files in vendor/cache\r\nBundle complete! 5 Gemfile dependencies, 11 gems now installed.\r\nBundled gems are installed into `./vendor/bundle`\r\n`ubygems.rb' is deprecated, and will be removed on or after 2018-12-01. Remove `-rubygems' from your command-line, or use `-r rubygems' instead\r\nChecking gcc:./configure:1421:in `check_tool_version': undefined method `map' for nil:NilClass (NoMethodError)\r\n        from ./configure:709:in `check_tools'\r\n        from ./configure:1798:in `run'\r\n        from ./configure:1998:in `<main>'\r\n\r\n```\r\nFisrt setup to run on user locate\r\nArticles: https://linuxize.com/post/how-to-install-ruby-on-ubuntu-18-04/\r\n\r\n```\r\nubuntu@ip-172-31-41-30:/var/www/html/controle-de-ponto$ bundle install                 \r\nFollowing files may not be writable, so sudo is needed:\r\n  /usr/local/bin\r\n  /var/lib/gems/2.5.0\r\n  /var/lib/gems/2.5.0/build_info\r\n  /var/lib/gems/2.5.0/bundler\r\n  /var/lib/gems/2.5.0/cache\r\n  /var/lib/gems/2.5.0/doc\r\n  /var/lib/gems/2.5.0/extensions\r\n  /var/lib/gems/2.5.0/gems\r\n  /var/lib/gems/2.5.0/specifications\r\nerror: cannot open .git/FETCH_HEAD: Permission denied\r\n\r\nRetrying `git fetch --force --quiet --tags \"/home/ubuntu/.bundle/cache/git/cocoon-d2f414e5fabdcc66c606101b7dbe16876943d89f\"` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags \"/home/ubuntu/.bundle/cache/git/cocoon-d2f414e5fabdcc66c606101b7dbe16876943d89f\"` in directory /var/lib/gems/2.5.0/bundler/gems/cocoon-4f888d686c2d has failed.\r\nIf this error persists you could try removing the cache directory '/home/ubuntu/.bundle/cache/git/cocoon-d2f414e5fabdcc66c606101b7dbe16876943d89f'error: cannot open .git/FETCH_HEAD: Permission denied\r\n\r\nRetrying `git fetch --force --quiet --tags \"/home/ubuntu/.bundle/cache/git/cocoon-d2f414e5fabdcc66c606101b7dbe16876943d89f\"` due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags \"/home/ubuntu/.bundle/cache/git/cocoon-d2f414e5fabdcc66c606101b7dbe16876943d89f\"` in directory /var/lib/gems/2.5.0/bundler/gems/cocoon-4f888d686c2d has failed.\r\nIf this error persists you could try removing the cache directory '/home/ubuntu/.bundle/cache/git/cocoon-d2f414e5fabdcc66c606101b7dbe16876943d89f'error: cannot open .git/FETCH_HEAD: Permission denied\r\n\r\nRetrying `git fetch --force --quiet --tags \"/home/ubuntu/.bundle/cache/git/cocoon-d2f414e5fabdcc66c606101b7dbe16876943d89f\"` due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags \"/home/ubuntu/.bundle/cache/git/cocoon-d2f414e5fabdcc66c606101b7dbe16876943d89f\"` in directory /var/lib/gems/2.5.0/bundler/gems/cocoon-4f888d686c2d has failed.\r\nIf this error persists you could try removing the cache directory '/home/ubuntu/.bundle/cache/git/cocoon-d2f414e5fabdcc66c606101b7dbe16876943d89f'error: cannot open .git/FETCH_HEAD: Permission denied\r\n\r\nGit error: command `git fetch --force --quiet --tags\r\n\"/home/ubuntu/.bundle/cache/git/cocoon-d2f414e5fabdcc66c606101b7dbe16876943d89f\"` in directory\r\n/var/lib/gems/2.5.0/bundler/gems/cocoon-4f888d686c2d has failed.\r\nIf this error persists you could try removing the cache directory\r\n'/home/ubuntu/.bundle/cache/git/cocoon-d2f414e5fabdcc66c606101b7dbe16876943d89f'\r\n```\r\n\r\n**I try run using sudo, has problems to install dependences:**\r\n```\r\n\r\nubuntu@ip-172-31-41-30:/var/www/html/controle-de-ponto$ sudo bundle install\r\nDon't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this\r\napplication for all non-root users on this machine.                                                                              \r\nFetching gem metadata from https://rubygems.org/..........\r\nFetching gem metadata from https://rubygems.org/.\r\nResolving dependencies...\r\nUsing rake 12.3.2\r\nUsing concurrent-ruby 1.1.5\r\nUsing i18n 1.6.0\r\n\r\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\r\n\r\n    current directory: /var/lib/gems/2.5.0/gems/pg-1.1.4/ext\r\n/usr/bin/ruby2.5 -I /usr/local/lib/site_ruby/2.5.0 -r ./siteconf20190822-21205-1lnhua9.rb extconf.rb\r\nchecking for pg_config... yes\r\nUsing config values from /usr/bin/pg_config\r\nYou need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side\r\napplication.\r\nYou need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side\r\napplication.\r\nchecking for libpq-fe.h... no\r\nCan't find the 'libpq-fe.h header\r\n*** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of necessary\r\nlibraries and/or headers.  Check the mkmf.log file for more details.  You may\r\nneed configuration options.\r\n\r\nProvided configuration options:\r\n        --with-opt-dir\r\n        --without-opt-dir\r\n        --with-opt-include\r\n        --without-opt-include=${opt-dir}/include\r\n        --with-opt-lib\r\n        --without-opt-lib=${opt-dir}/lib\r\n        --with-make-prog\r\n        --without-make-prog\r\n        --srcdir=.\r\n        --curdir\r\n        --ruby=/usr/bin/$(RUBY_BASE_NAME)2.5\r\n        --with-pg\r\n        --without-pg\r\n        --enable-windows-cross\r\n        --disable-windows-cross\r\n        --with-pg-config\r\n        --without-pg-config\r\n        --with-pg_config\r\n        --without-pg_config\r\n        --with-pg-dir\r\n        --without-pg-dir\r\n        --with-pg-include\r\n        --without-pg-include=${pg-dir}/include\r\n        --with-pg-lib\r\n        --without-pg-lib=${pg-dir}/lib\r\n\r\nTo see why this extension failed to compile, please check the mkmf.log which can be found here:\r\n\r\n  /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/pg-1.1.4/mkmf.log\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /var/lib/gems/2.5.0/gems/pg-1.1.4 for inspection.\r\nResults logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/pg-1.1.4/gem_make.out\r\n\r\nAn error occurred while installing pg (1.1.4), and Bundler cannot continue.\r\nMake sure that `gem install pg -v '1.1.4' --source 'https://rubygems.org/'` succeeds before bundling.\r\n\r\nIn Gemfile:\r\n  pg\r\n\r\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\r\n\r\n    current directory: /var/lib/gems/2.5.0/gems/pg-1.1.4/ext\r\n/usr/bin/ruby2.5 -I /usr/local/lib/site_ruby/2.5.0 -r ./siteconf20190822-21205-1lnhua9.rb extconf.rb\r\nchecking for pg_config... yes\r\nUsing config values from /usr/bin/pg_config\r\nYou need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side\r\napplication.\r\nYou need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side\r\napplication.\r\nchecking for libpq-fe.h... no\r\nCan't find the 'libpq-fe.h header\r\n*** extconf.rb failed ***\r\nCould not create Makefile due to some reason, probably lack of necessary\r\nlibraries and/or headers.  Check the mkmf.log file for more details.  You may\r\nneed configuration options.\r\n\r\nProvided configuration options:\r\n        --with-opt-dir\r\n        --without-opt-dir\r\n        --with-opt-include\r\n        --without-opt-include=${opt-dir}/include\r\n        --with-opt-lib\r\n        --without-opt-lib=${opt-dir}/lib\r\n        --with-make-prog\r\n        --without-make-prog\r\n        --srcdir=.\r\n        --curdir\r\n        --ruby=/usr/bin/$(RUBY_BASE_NAME)2.5\r\n        --with-pg\r\n        --without-pg\r\n        --enable-windows-cross\r\n        --disable-windows-cross\r\n        --with-pg-config\r\n        --without-pg-config\r\n        --with-pg_config\r\n        --without-pg_config\r\n        --with-pg-dir\r\n        --without-pg-dir\r\n        --with-pg-include\r\n        --without-pg-include=${pg-dir}/include\r\n        --with-pg-lib\r\n        --without-pg-lib=${pg-dir}/lib\r\n\r\nTo see why this extension failed to compile, please check the mkmf.log which can be found here:\r\n\r\n  /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/pg-1.1.4/mkmf.log\r\n\r\nextconf failed, exit code 1\r\n\r\nGem files will remain installed in /var/lib/gems/2.5.0/gems/pg-1.1.4 for inspection.\r\nResults logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/pg-1.1.4/gem_make.out\r\n\r\nAn error occurred while installing pg (1.1.4), and Bundler cannot continue.\r\nMake sure that `gem install pg -v '1.1.4' --source 'https://rubygems.org/'` succeeds before bundling.\r\n\r\nIn Gemfile:\r\n  pg\r\n\r\n\r\n\r\n\r\n\r\n\r\n```"}}
{"actor":{"display_login":"mateusgomesti"}}