ruby on rails heroku gem runtime error installing - ruby-on-rails

This is the error:
I am getting an error while installing Heroku gem please help me.
What Should I Do?

Please follow the official installation guide here.
You are installing ruby gem but what you need is heroku-cli which will help you run commands like, heroku create, heroku push, etc.

Actually It Worked , I Installed Heroku And Gone In Master Folder And It Worked Perfectly

Related

git push heroku master issue?

When I'm using git push heroku master, I'm facing the issue as shown in the below figure:
Please help me in resolving the issue.
With your log error, your ruby is not supported by Heroku. Check Heroku document then upgrade your Ruby version here
As mentioned in the heroku error logs, your ruby version is not upto date.
In your Gemfile, add this line to the top.
ruby '2.5.3'
run bundle install, commit and push again to heroku.
Its always good practice to specify your ruby version for all your project. This is good when you are moving your project from one environment or different server.
Add ruby '2.5.3' in your Gemfile as top most line and bundle

Ruby on Rails db migrate error while loading the hoe gems

I have been having this problem the whole day. whenever i try to do a rake db:migrate command on rails i keep getting this error.
"error while loading the hoe gem.
Please install it by running the following:
$ [sudo] gem install hoe".
But everytime i run and update all my gems i still get the same error.
The hoe gems i have already installed is the latest version (hoe 3.15.3)
Please help.
Am running rails 5.0.0.1this is the error i keep getting
Do you have the correct version? check your Gemfile.
Use bundle install to install correct version
I kind of found a way around it. I just deleted the previous app folder, created a new one and the problem was fixed. Good thing i was just starting out.

Error on executing rails server with postgresql database

I am new to Ruby on Rails and I was trying to start with a simple application and I am stuck with the following error
I tried to install gem install pg --pre , and other pg gems but the problem still exists.
Am I missing out something ?
Any help is appreciated.
Thanks in advance.
I solved my problem:
Had my pg_ext.so file under: /usr/local/share/gems/gems/pg-0.15.1/ext/
Copied it to: /usr/local/share/gems/gems/pg-0.15.1/lib/

Heroku can't find libruby-1.9.1.so.1.9

I'm running through a ruby on rails tutorial, and I just installed the Heroku toolkit.
My problem is that whenever I try "Heroku login", or whatever heroku command, I get :
ruby1.9.1: error while loading shared libraries: libruby-1.9.1.so.1.9: cannot open shared object file: No such file or directory
I remember having cleaned my ruby installations recently, so I wonder if I just miss some libs that I have deleted or something, but I haven't been able to find anything satisfying about that.
Do you have an idea how to get out of this situation, and be able to use Heroku ?
I managed to make heroku work by installing it with gem :
gem install heroku
instead of :
sudo apt-get heroku
It seems like heroku was trying to use a ruby version out of rvm (but i deleted the ruby version which was installed before rvm). Now the gem installation took care of that.

problems updating to new version of prawn on production server with bundler

I have updated my code etc to work with the 0.10.2 version and its all
working in development.
When i deployed to my production server and done a bundle install i
still get this errors?
git://github.com/sandal/prawn (at 0.10.2) is not checked out. Please
run bundle install (Bundler::GitError)
I then run bundle install again and get this error
/usr/local/rvm/gems/ruby-1.8.7-p302/bundler/gems/prawn-89ba0ebf7ac3/
prawn.gemspec:2: warning: already initialized constant PRAWN_VERSION
Can anyone help with this PLEASE ?
thanks alot
rick
I had similar issues and resolved it by removing the prawn submodules in git.

Resources