[Solved] Error installing sqlite3. Ruby on Rails, Fedora

While creating an app with ruby on rails, in Fedora if you face error something like this:

or in other Linux distros, you can use the same way make sure you replace the correct command as per your system.

    ERROR:  Error installing sqlite3:
    ERROR: Failed to build gem native extension.

Then run the command

Your Gift of $200 Cloud Hosting Credit is Here. Claim Now!

    sudo dnf install sqlite-devel

after it is successful run

    bundle install If still not working then, install ruby in developer mode by command:

    sudo dbf install ruby-devel

and run bundle install, it must work.

Before you go, let's stay connected
About the Author
Lakshman Basnet
Nepali Digital Media Marketer currently based in Adelaide, South Australia who apart from playing with his cat - Eleven, also enjoys developing web content, publishing blogs and YouTube videos in his free time.