简体   繁体   中英

Novice terminal , php, “-bash: export: not a valid identifier”

I'm a newbie web developer, and using OSX 10.9.4.

I'm trying to install MAMP, but there's an error shown in terminal every time I opened it:

-bash: export:`/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php5.4.10/bin:/Users/Admin/Library/cakephp-cakephp-74836f8/lib/Cake/Console:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin': not a valid identifier

I try to do another command line, but it has the same error:

Admin-MacBook-Pro::~ Admin$ ls -la
-bash: ls: No such file or directory

Admin-MacBook-Pro:~ Admin$ printenv | grep MAMP
-bash: grep: No such file or directory
-bash: printenv: No such file or directory

Admin-MacBook-Pro:~ Admin$ 

I don't know if I have missed any step. How can I fix this?

Thanks in advance,

phii

Not sure if youre adding the colon or not.. but if you do this command in bash:

ls -la

it should give a list of directories. as for your export, you can edit your .bashrc and add the path that way, reboot your terminal and check if php is installed by doing:

printenv | grep MAMP

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM