0

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.

3 Answers3

3

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).

Joel Berger
  • 20,180
  • 5
  • 49
  • 104
2

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.

the_ccalderon
  • 2,006
  • 2
  • 13
  • 24
1

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
Benjamin W.
  • 46,058
  • 19
  • 106
  • 116