I need to use some tools, but I have some problems when I try use PHP Artisan in Laravel and Cordova, I need to comment some lines, because the $PATH is not working fine. I am a noob working with Unix :)
To be more specific in my question, I need that these lines work fine together, without need to uncomment and comment depending of the tool I need to use:
export PATH="/Applications/XAMPP/xamppfiles/bin:$PATH" export PATH=~/.composer/vendor/bin:$PATH Errors I have when I uncommented each one:
Case 1: Cordova can only run in Xcode version 4.6 or greater.
Case 2: Mcrypt PHP extension required.
EDIT: I've added the complete bash profile:
# The next line updates PATH for the Google Cloud SDK. source /Users/chema/google-cloud-sdk/path.bash.inc # The next line enables bash completion for gcloud. source /Users/chema/google-cloud-sdk/completion.bash.inc #Comment this line make Cordova works fine #export PATH="/Applications/XAMPP/xamppfiles/bin:$PATH" export PATH=${PATH}:/Users/chema/sdk-android/sdk/platform-tools:/Users/chema/sd$ #Comment this line make PHP Artisan with Laravel works fine export PATH=~/.composer/vendor/bin:$PATH export ANDROID_HOME=/Users/chema/sdk-android/sdk export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools If I uncomment the two lines, just works PHP Artisan Laravel.
echo PATH when Cordova it's working and PHP Artisan doesn't:
which xcodebuild /usr/bin/xcodebuild
/Users/chema/.composer/vendor/bin:/Users/chema/google-cloud-sdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/chema/sdk-android/sdk/platform-tools:/Users/chema/sdk-android/sdk$:/Users/chema/sdk-android/sdk/tools:/Users/chema/sdk-android/sdk/platform-tools
echo PATH when PHP Artisan it's working and Cordova doesn't:
/Applications/XAMPP/xamppfiles/bin:/Users/chema/google-cloud-sdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/chema/sdk-android/sdk/platform-tools:/Users/chema/sdk-android/sdk$:/Users/chema/sdk-android/sdk/tools:/Users/chema/sdk-android/sdk/platform-tools
which xcodebuild /usr/bin/xcodebuild
Thanks!!
PATH=${PATH}:...try doing:export PATH=$PATH:...:)just offering a potential solution. hence why i didn't make it an answer{}characters can be used to delimit an environment variable reference; so you can do something likeecho ${HOME}hellowhereecho $HOMEhellowould obviously fail. The()characters, on the other hand, are a different story.PATH=/Applications/XAMPP/xamppfiles/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:~/.composer/vendor/bin:$PATH; export PATH as the last line (and commenting the others out? doesn't work