richdynamix / magestead

The Vagrant Solution for Magento Developers
81 stars 29 forks source link

bash: magestead: command not found #69

Closed prabhuchelladurai closed 7 years ago

prabhuchelladurai commented 8 years ago

I have followed all the instructions and installed the composer.

when I give the command 'magestead new My-Project' I got the following output:

prabhuchelladurai@Hershel-Harleen ~/Magento $ magestead new My-Project
bash: magestead: command not found

what's the flaw and how could it be solved?

Thanks

richdynamix commented 8 years ago

Have you set your composer bin directory into your PATH?

AntonKL commented 8 years ago

Same issue here:

echo $path ~/.composer/vendor/bin /Users/antonkjorcklinden/.rbenv/shims /usr/local/sbin /usr/local/bin /Users/antonkjorcklinden/.bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /opt/X11/bin

prabhuchelladurai commented 7 years ago

@richdynamix Yes.. Of course, I did it..

richdynamix commented 7 years ago

Which operating system do you have? Can you list the contents of ~/.composer/vendor

prabhuchelladurai commented 7 years ago

I am using ROSA Desktop Fresh R7.

But how do I get the contents of ~/.composer/vendor?

richdynamix commented 7 years ago

ls-l ~/.composer/vendor

prabhuchelladurai commented 7 years ago

The output of the command : ls -l ~/.composer/vendor is

prabhuchelladurai@Hershel-Harleen ~/Magento $ ls -l ~/.composer/vendor
ls: cannot access /home/prabhuchelladurai/.composer/vendor: No such file or directory

But when I try to execute 'composer global require "richdynamix/magestead" ', I get the following output:


prabhuchelladurai@Hershel-Harleen ~/Magento $ composer global update "richdynamix/magestead"
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
Changed current directory to /home/prabhuchelladurai/.config/composer
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
prabhuchelladurai@Hershel-Harleen ~/Magento $
richdynamix commented 7 years ago

Unfortunately you are using a flavour of Linux that uses XDG_CONFIG_HOME. This is not currently supported with Magestead but should be resolved in future versions.

prabhuchelladurai commented 7 years ago

Oh.. Thanks for the clarification. May I know when this could be possibly resolved?