Ramy Ramy - 2 years ago 110
Ruby Question

Why am I getting a command not found for Padrino?

EDIT: This seems to work on my CentOS machine but not my Ubuntu box.

$ which gem
$ which padrino
$ which padrino-gen

I started playing with Sinatra but when I started thinking about some admin/authentication support I was lead to Padrino.

Problem is as follows.

I ran:

sudo gem install padrino

but then when I ran the create command, I got a command not found issue:

$ padrino g project demo-app
padrino: command not found

This seems to work in my directory where I created my heroku app because there's a gemfile there so I can run
bundle exec
before the
command. But shouldn't I be able to create a padrino project without a gemfile??

Answer Source

this worked for me in Ubuntu 11.04

# Setup Ubuntu LTS 10.4
sudo apt-get install ruby 
sudo apt-get install ruby-dev 
sudo apt-get install sqlite 
sudo apt-get install libsqlite3-dev
sudo apt-get install irb
sudo apt-get install rdoc
sudo apt-get install libopenssl-ruby
sudo apt-get install g++
wget http://rubyforge.org/frs/download.php/69365/rubygems-1.3.6.tgz
>tar zxvf rubygems-1.3.6.tgz 
cd rubygems-1.3.6
sudo ruby setup.rb
sudo gem1.8 install rake rspec padrino --no-ri --no-rdoc
padrino g project foo -d activerecord -b
padrino g admin
padrino rake ar:setup

ref: https://gist.github.com/1016133

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download