rackup: command not found
Asked Answered
H

2

8

I am currently working on a project that requires the rackup command on ubuntu 11.04, but I am getting an error: -bash: rackup: command not found. I have installed both the rails and rack ruby gems.

Any help with this would be awesome!

Hegarty answered 26/6, 2012 at 7:58 Comment(5)
some more info would help. are you using rvm? what's in your $PATH?Goodoh
No, I am not using rvm and here is what my $PATH has: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamesHegarty
where is your ruby installation? does rails command work?Goodoh
Not sure where I can find out where my ruby installation is, but rails does work.Hegarty
which rails should tell you where gems' binaries are located, rackup should be in the same location. if it's not maybe try reinstalling rack gemGoodoh
H
0

Looks like rackup was really rackup1.8. Problem was solved right after that! Anybody who runs into a similar issue, be sure to try rackup[version] along with just rackup.

Hegarty answered 27/6, 2012 at 7:32 Comment(0)
F
18

if you're using bundler then perhaps you need to use bundle exec

bundle exec rackup
Futtock answered 26/6, 2012 at 8:3 Comment(2)
Just throwing this error when I try that: -bash: bundle: command not foundHegarty
@ZacharyChristopoulos - Have you checked whether the Gemfile exists?Amaranth
H
0

Looks like rackup was really rackup1.8. Problem was solved right after that! Anybody who runs into a similar issue, be sure to try rackup[version] along with just rackup.

Hegarty answered 27/6, 2012 at 7:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.