Questions tagged [rails]

Ruby on Rails Web application framework

Filter by
Sorted by
Tagged with
0 votes
0 answers
77 views

What is the correct shell path to export in .profile for Mastodon and Rails?

@steeldriver's answer to In a bash script, how do I change from root user to another user using su and then exit? works great for using sudo and su in a bash script, but a new issue has to do with the ...
BlueDogRanch's user avatar
5 votes
2 answers
7k views

LoadError: libffi.so.8: cannot open shared object file: No such file or directory running Rails

I am having trouble with creating a new rails project. When I run rails new project_name it comes to the rails webpacker:install it fails with the following error: LoadError: libffi.so.8: cannot open ...
mberc's user avatar
  • 51
1 vote
2 answers
3k views

How do I setup a subdomain in apache2 on ubuntu 20.04?

I have an apache server running on port 80 and I want to have a subdomain that points to port 3000 on the same server. My server on port 3000 is a ruby on rails server, but ideally I can host my main ...
Ryan Glenn's user avatar
1 vote
1 answer
704 views

Can't open Rails console after upgrading to Ubuntu 20.04, libreadline.so.7 not found

Last night I updated Ubuntu from 18.04 to 20.04 . I'm a Ruby on Rails developer and I haven't been able to launch Rails console since the update. I'm getting an error related to libreadline.so.7 . I'...
pinkfloyd90's user avatar
2 votes
1 answer
2k views

Command 'ruby' not found after successful installation using rbenv on Ubuntu 20.04

Please pardon my errors (if any) as this is my first question here. I just successfully installed ruby on my Ubuntu 20.04 following this guide: https://github.com/jhu-ep-coursera/fullstack-course1-...
Innopalm4christ's user avatar
1 vote
0 answers
39 views

What DocumentRoot to use?

I have a rails app set up in a directory named "testapp". But when I run an apache2ctl configtest it tells me the Document Root is incorrect. Is there anyway I can check what the document root should ...
Shane Reen's user avatar
1 vote
0 answers
1k views

Ruby on Rails, db commands missing from rake

I am trying to create a database with the following command: bundle exec rake db:create but, that command is missing along with all the other db commands. The error I get is: rake aborted! Don't ...
J. Doe's user avatar
  • 11
0 votes
1 answer
2k views

Ubuntu 18.04 system broken after uninstalling openssl [duplicate]

I am very new to Ubuntu and to rails. I tried to do a bundle install after installing rails through rvm, but I had an error back with the openssl. I looked online for a solution and I uninstalled the ...
Marco Pietro Caramaschi's user avatar
1 vote
1 answer
278 views

Ruby version differs from the rbenv one in server

In my server (Ubuntu 16.04) I have two users: root and other. I want to config a Rails project. Now, after some configuration I installed the v2.5 version of Ruby (required) as a root user using ...
Kenny Horna's user avatar
1 vote
1 answer
691 views

Minimal Ubuntu server image and OpenVZ OS images

I would like to deploy my Ruby on Rails web application on a VPS, so my VPS would work as a web server. My future hosting provider claims to offer OS templates from the official OpenVZ website. ...
Asarluhi's user avatar
  • 1,517
0 votes
2 answers
1k views

How do I rotate my logs despite having running processes?

I'm running Ubuntu 14.04. I have this Rails project and my logs are exploding out of control size-wise ... myuser@myapp:~$ ls -al /home/rails/myapp/log/ total 3118220 drwxr-xr-x 2 rails rails ...
Dave's user avatar
  • 2,045
1 vote
1 answer
250 views

How can I fix these errors when trying to run a ruby-based project on NetBeans 6.9.1?

I am trying to run a ruby-based project on NetBeans 6.9.1 but nothing happens and Mongrel shows an error message. ruby -v => 1.8.7 rails -v => 2.3.8 gem -v => 1.5.0 Error message: /var/...
bazzra's user avatar
  • 11
1 vote
2 answers
777 views

Why can I run command, but not using sudo?

I log as user named rails and can searchd --config /etc/abc.xyz/sphinx.conf. When I do sudo -u rails searchd --config /etc/abc.xyz/sphinx.conf, it returns: Sorry, user rails is not allowed to ...
Gulaev Valentin's user avatar
0 votes
1 answer
254 views

Rails server error secret_key

I created an application with ruby on rails in rubymine. I made it on Windows pc and it worked. Now I transferred it to a pc with Ubuntu and I installed ubuntu using this tutorial. Now I am getting an ...
fangio's user avatar
  • 147
2 votes
1 answer
1k views

Getting "unable to stat //bundle (No such file or directory)" even though the file exists

I'm hoping this is just a problem with my not understanding how the $PATH variable works. I'm using Ubuntu 14.04. I'm trying to run rails through a unicorn server. I have the below configuration ...
Dave's user avatar
  • 2,045
0 votes
0 answers
393 views

How to remove Rails 3.2.16 after installed using apt-get?

How to remove Rails 3.2.16 after installed using apt-get? I tried use "sudo apt-get purge rails" but it not working. I typed "rails -v" then it return "3.2.16". Can anyone help me please?
Vien Nguyen's user avatar
8 votes
1 answer
9k views

Can't install Rails on Ubuntu 16.04

i'm noob. This is my problem when i try. Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. current directory: /...
Alekx Yánez's user avatar
3 votes
1 answer
935 views

Pgadmin3 not working on ubuntu 15.10

I installed postgres than pgadmin3 on Ubuntu 15.10. install was successful but when I type pgadmin3 in terminal and hit enter I get this following error : Fatal Error: Mismatch between the program ...
Ammar Nadeem's user avatar
0 votes
1 answer
623 views

Redmine installation on 14.04

I have installed Ubuntu 14.04 server and want to install fresh Redmine. I faced several problems while installing, and still no LUCK. I found some documentations regarding installation but they are ...
krishna's user avatar
  • 145
1 vote
1 answer
225 views

Rails production server not responding to internet requests

I'm utterly at a loss here - I've had a rails 4 production server running for a couple of months. Not long ago something happened in my network and my server stopped responding to all requests. I've ...
Ben's user avatar
  • 109
0 votes
1 answer
618 views

Just installed Ubuntu/Ruby, cant create rails project

so I've just started using Ubuntu a few days ago, started trying to get an IDE working for Ruby on Rails developement, downloaded/installed everything from scratch. I found out the first version of ...
HappyFriendshipMan's user avatar
0 votes
1 answer
1k views

rails --v works for root user but not for other users

I just setup a rails environment following https://gorails.com/setup/ubuntu/14.04 and using the recommended option i.e. with rbenv. Though rails is installed and works properly but only for the root ...
KMH's user avatar
  • 3
12 votes
1 answer
18k views

Update ImageMagick Ubuntu

I would like to update my version of ImageMagick. I originally installed ImageMagick with... sudo apt-get imagemagick Current Version: myapp$ convert -version Version: ImageMagick 6.7.7-10 2014-...
MicFin's user avatar
  • 233
1 vote
0 answers
2k views

MiniMagick::Error ImageMagick/GraphicsMagick is not installed

When I SSH into my instance and run convert -version or mogrify -version it recognizes ImageMagick but when I try to upload an image, I am receiving an error. conver -version convert -version ...
MicFin's user avatar
  • 233
0 votes
1 answer
79 views

Rails installation runtime error

hi guys I'm trying to install rails using ubntu desktop 14.04 my ruby version is ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] i install it with rvm my gem version gem -v 2.5.0 when i ...
Sarastro's user avatar
  • 197
0 votes
1 answer
687 views

Problems on setting up rails server (4.2.4) on Ubuntu 14.04 LTS

Noob question here. I've been trying to install Rails 4.2.4 on my Ubuntu 14.04 LTS. I think I achieved it using RVM, but I'm not sure if everything needed is installed, because when I try to use the ...
Sara's user avatar
  • 1
1 vote
1 answer
2k views

Gem Debugger won't install with bundle install

I have installed ruby on rails using rvm. I am using 2.2.0 ruby and 4.2.0 Rails. I tried running bundle install on an older project that I developed on a former pc but I get : Gem::Ext::BuildError: ...
Lucian Tarna's user avatar
3 votes
1 answer
5k views

can't bundle install json gem in ubuntu

I have installed ruby on rails using rvm . I am trying to bundle install an older project that I had on a former pc but I get the following error when I run the bundle install command: Installing ...
Lucian Tarna's user avatar
1 vote
2 answers
2k views

Is ther any tool in ubuntu to convert pdf to doc

I am looking for a tool or middle-ware which converts PDF to DOC. which should convert exact PDF content (with all image and style.) I have tried abiword. No use. not converting properly. If we can ...
Prabhu Vignesh Rajagopal's user avatar
3 votes
1 answer
14k views

Why is my system unable to locate libreadline when I'm certain I've installed it?

I am trying to set up my chromebook for development with crouton and ubuntu. I am using the railsgirls recipe to install rails and I'm getting stuck at: E: Unable to locate package libreadline I ...
Brian Sekelsky's user avatar
1 vote
1 answer
66 views

I'm trying to install rails and I think I just broke my Ubuntu installation, any help?

I am following this guide to install ruby on rails to work with Apache and Passenger. I have followed it step for step and done every command in verbatim. Soon after running sudo nano /etc/apt/...
Zach Landry's user avatar
0 votes
1 answer
4k views

Dropdown menu not showing/working on rails [closed]

"SelectDatabase" and "SelectTable" dropdown menu not working. _header.html.erb file <header class="navbar navbar-fixed-top navbar-inverse"> <div class="container"> <%= ...
Sri Tamal Chakraborty's user avatar
1 vote
2 answers
725 views

RVM Installation error

Trying to start a rails environment but it won't work. I'm following installfest guide here. Steps 1 and 2 work; however, the curl -L get.rvm.io | bash -s stable terminal command provides me with %...
cbll's user avatar
  • 1,580
0 votes
2 answers
1k views

Forbidden to access PhpMyAdmin in VPS of Ubuntu,Apache and Mysql

I get this error through access phpmyadmin in my vps. Forbidden You don't have permission to access /phpmyadmin on this server. Apache/2.4.7 (Ubuntu) Server at 188.165.168.89 Port 1091 I config ruby ...
Ehsan Gazar's user avatar
2 votes
2 answers
2k views

How can I capture shell variable output to use in my capistrano task

I am using capistrano to deploy a Ruby on Rails application. I previously was using Centos. In converting my task to be used with Ubuntu, I have a task that I was using for Centos was: capture("env |...
Vell's user avatar
  • 31
3 votes
1 answer
1k views

How to avoid reinstalling ruby each time I restart?

I need to do something with Ruby on Rails, so I have followed this guide to set up my development environment. I used the RVM method to install Ruby, then I install Rails as shows in the guide. I run ...
Castiblanco's user avatar
1 vote
0 answers
258 views

Ubuntu Server in Virtualbox working slowly for Ruby On Rails

I have quite big rails app to develop frontend for, most work with design involve Adobe Illustrator and Photoshop, tried run them in VM but they work very buggy. So decided to go other way - to run ...
dofeoct's user avatar
  • 167
0 votes
1 answer
238 views

rails -version command error in Ubuntu 12.04

I have installed ruby and rails in Ubuntu 12.04. I am trying to create the new project for rails using this command "rails new testApp", but it is giving me the error "/home/dev/.rvm/gems/ruby-2.2....
jahanzaib  kk's user avatar
2 votes
2 answers
5k views

Issue with rails installation

I have installed rails on my Ubuntu 14.04 system following the instructions mentioned in this DigitalOcean article. Note that I am installing rails in my local system and not in DigitalOcean - I just ...
callmekatootie's user avatar
9 votes
2 answers
12k views

How to access the Ruby Command line in ubuntu 14.04?

I have Installed Ruby On Rails of version 2.1.3p242 on my system. But I can't findout the ruby command line. I have searched but not found. I have try to to check through man ruby : Show some ...
Nishant's user avatar
  • 211
11 votes
4 answers
41k views

How to set default to ruby 2.1.2?

I have ruby 1.9.3 and 2.1.2. When I open the terminal by default it uses ruby 1.9.3 but I want to use ruby 2.1.2. How can I set ruby 2.1.2 to be default?
Rasool's user avatar
  • 315
0 votes
2 answers
2k views

Can install Rails on Ubuntu 14.04 with Ruby 2.1.3

I am using Ubuntu 14.04. I wanted to use the latest ruby (version 2.1.3), so I installed it with RVM. rvm install ruby --latest rvm use ruby --latest --default But when I try to install Rails, i get ...
Enrique Moreno Tent's user avatar
1 vote
1 answer
119 views

running a tar command eats all resources

I am running a Rails application on my ubuntu 12.04 server. I have set up a cron job to take backup of all files uploaded to my application every morning at 2 am. It is a lot of files (around 900 mb). ...
Jepzen's user avatar
  • 917
1 vote
0 answers
395 views

Error installing rvm on Ubuntu 12.04

I'm taking a web applications development course on Coursera that requires me to install Ruby and Rails. I'm following the instructions at https://class.coursera.org/webapplications-002/forum/thread?...
elexhobby's user avatar
  • 345
10 votes
4 answers
23k views

Opening multiple terminal tabs and running command

I need to open multiple terminal tabs, give them titles, go to a directory, and make each tab run a command. I am new to Linux and shell scripting, after searching online and checking some solutions, ...
Brary's user avatar
  • 200
1 vote
1 answer
2k views

Could not find gem 'jquery-rails (>= 0)'

I was trying to create a rails application. it created it successfully and at the end it says; Resolving dependencies... Could not find gem 'jquery-rails (>= 0) ruby' in the gems available on this ...
Jalasem's user avatar
  • 111
4 votes
1 answer
4k views

How to install postgressql-server

For ruby development on Heroku I need to use postgresql, but when I do bundle install I see this message: You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-...
user1052732's user avatar
2 votes
1 answer
13k views

How to install ruby mine Ubuntu [duplicate]

I have already install RVM. Now I have download RubyMine-6.3.2.tar.gz From here http://www.jetbrains.com/ruby/download/ , But still I am confuse How can I install it on my system. I am using Ubuntu 12....
user3425009's user avatar
0 votes
1 answer
392 views

Installation Of ruby on rails in ubuntu14.04 [duplicate]

How to install ruby on rails on Ubuntu 14.04? Which versions are better to install, and how to install ruby (version) rubygems, rubygems_update -v (version), mysql_server libmysqlclient-dev mysql2, ...
Gopikrishna's user avatar
2 votes
1 answer
916 views

error while running ruby application at system startup in ubuntu

I am on Ubuntu 12.04 machine. Have a script file which runs when entered manually in terminal gnome-terminal -e /home/precise/Desktop/cartodb/script.sh The content of script file is cd /home/...
anjo's user avatar
  • 23