Hi
Long story short!
I’ve got a rails application I’m trying to install on a shared hosting
plan (with NativeSpace) using cPanel.
I have two gems; calendar_date_select and prawn which are required.
I have used cPanel to install the gems - they say they are installed.
I’m trying to run my application and it’s not loading due to the
errors shown below …
I’m having to keep ask NativeSpace tech support to install gems which
seems silly as cPanel seems to say they are installed. And although
they’ve installed prawn, my application isn’t seeing it.
The error message in mongrel.log is:
Missing these required gems:
prawn
You’re running:
ruby 1.8.7.22 at /usr/bin/ruby
. rubygems 1.3.5 at /home/enigmath/ruby/gems, /usr/lib/ruby/gems/1.8
Run
rake gems:install
to install the missing gems.
I keep seeing the following in the cPanel gems setup help panel for
RubyGems installation:
Location of Your Ruby Gem(s)
Path: /home/enigmath/ruby/gems
Using Your Ruby Gem(s)
You will need to add /home/enigmath/ruby/gems to the include path.
You can do this by adding the following code to your script:$:.push(“/home/enigmath/ruby/gems”)
Which means nothing to me!
I’ve tried following lots of information about setting variables
in .bash_profile (which I have done), but as I don’t have root access,
there is little I can do to run the script of check it’s working! What
I have been able to do just doesn’t seem to work.
Can anyone please tell me how to get this working?!
Also … when I remove the gems the server starts … and it loads on
www.enigmatheatrecompany.co.uk with the static page … but when I try
to go to www.enigmatheatrecompany,co.uk/appointment it says page not
found.
It’s like the routes aren’t working!!!
I have no experience with mongrel as I use Passenger on my development
server so I don’t know where to look for the problems or how to
structure a solution.
Does anyone have a helpful “I did this with cPanel and although it was
a pain I solved it this way?” advice?!
Thanks
Darren