Bikash Gupta
Bikash Gupta

Reputation: 31

Install laravel on xampp in arch linux

I have installed xampp in arch linux and also the composer using the command given below:

curl -sS https://getcomposer.org/installer |
sudo php -- --install-dir=/usr/local/bin --filename=composer

I have also installed laravel using the following commands.

composer global require "laravel/installer=~1.1"
export PATH="~/.composer/vendor/bin:$PATH"

But still, when I type laravel ne <project> I get the error

bash:laravel is not a command

How can I check it is properly installed?

Upvotes: 2

Views: 3443

Answers (2)

tomescu adrian
tomescu adrian

Reputation: 1

Download xampp from web

sudo chmod 755 xampp-linux-x64-8.2.12-0-installer.run
sudo ./xampp-linux-x64-8.2.12-0-installer.run

Will work better

Upvotes: 0

Jos&#233; Luis Alonso
Jos&#233; Luis Alonso

Reputation: 19

Modify you shell script

sudo nano ~/.bashrc 

And add this

export PATH="$PATH:~/.composer/vendor/bin"

or this

export PATH="~/.config/composer/vendor/bin:$PATH"

Upvotes: 1

Related Questions