statonlab / tripaldock

Build a simple development environment for Tripal with Docker
GNU General Public License v3.0
1 stars 0 forks source link

tripaldock new site_name failed #55

Closed NicHerndon closed 4 years ago

NicHerndon commented 4 years ago

I ran the following commands (the output from all but last one is not included), and got a command not found error.

$ git clone https://github.com/statonlab/tripaldock.git
$ composer global require statonlab/tripaldock:~0.1.1
$ cd tripaldock/
$ ./tripaldock new tripal_dev

Fatal error: Uncaught Error: Class 'Symfony\Component\Console\Command\Command' not found in tripaldock/src/NewCommand.php:12
Stack trace:
#0 tripaldock/src/bootstrap.php(9): require()
#1 tripaldock/tripaldock(19): require('/Users/herndonn...')
#2 {main}
  thrown in tripaldock/src/NewCommand.php on line 12
almasaeed2010 commented 4 years ago

Hello Nic

You don’t need to clone the repo. All you need is to install tripaldock globally using composer. This article explains how to make global modules available: https://akrabat.com/global-installation-of-php-tools-with-composer/

Let me know if anything is not clear

NicHerndon commented 4 years ago

That worked. I have a Tripal instance running - very cool. Thank you.

almasaeed2010 commented 4 years ago

Great!