user3321689
user3321689

Reputation: 41

Mojolicious, morbo command not found

I've installed Mojolicious on OS X Mavericks using the instructions found on the Mojolicious web page (http://mojolicio.us/).

The directions state " To run this example with the built-in development web server just put the code into a file and start it with "morbo". " When I do so, the command line gives me the error " morbo: command not found ".

I'll delete this if it's some rookie mistake but the only solution I've found is another stackoverflow page that didn't help me.

Upvotes: 0

Views: 2224

Answers (3)

the_ccalderon
the_ccalderon

Reputation: 2084

My morbo is here: /usr/local/Cellar/perl/5.24.0_1/bin/morbo

if I run it from there it works as expected. Just run

find / -name morbo and you will find it.

Hope it helps.

Upvotes: 2

Ovidiu Satmari
Ovidiu Satmari

Reputation: 11

I had the same problem, but with the standard Perl install, not perlbrew. I was expecting the mojo command to be available, but I only had the morbo command.

which morbo -> /opt/local/bin/morbo
sudo ln -s /opt/local/bin/morbo /opt/local/bin/mojo

Upvotes: 1

Joel Berger
Joel Berger

Reputation: 20280

As part of the installation process of any Perl module that contains scripts, they are installed to a specific location. If that location is not in your executable path, then they cannot be run. I would do a file search for the morbo script and check your $PATH variable. The script must be in the directories listed in that variable to run it by name. Check by running echo $PATH in a terminal (I know that works on Linux, I think it should work for Mac).

You can also run morbo by executing the full path to the executable:

/home/joel/perl5/perlbrew/perls/perl-5.18.1/bin/morbo myapp.pl

(p.s. as you can see, I use perlbrew, I highly recommend it).

Upvotes: 3

Related Questions