jide / clamp

Command Line Apache MySQL PHP
http://jide.github.io/clamp
GNU General Public License v2.0
79 stars 9 forks source link

sudo issue ? #1

Closed revolunet closed 10 years ago

revolunet commented 10 years ago

while launching curl http://jide.github.io/clamp/install.sh | sh sudo is not "forwarded" to underlying commandes

$ ▶curl http://jide.github.io/clamp/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1331  100  1331    0     0   2237      0 --:--:-- --:--:-- --:--:--  2240
Installing MariaDB
Error: Permission denied - /Library/Caches/Homebrew/Formula/mariadb.brewing
Fetching https://github.com/jide/clamp/tarball/master
^C
$ ▶sudo curl http://jide.github.io/clamp/install.sh | sh
Password:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1331  100  1331    0     0  18950      0 --:--:-- --:--:-- --:--:-- 19014
Installing MariaDB
Error: Permission denied - /Library/Caches/Homebrew/Formula/mariadb.brewing
Fetching https://github.com/jide/clamp/tarball/master
mv: rename /var/folders/n2/31w34qld7gs4dc1m2f_hkyzw0000gn/T//clamp.51495/clamp to /usr/local/clamp: Permission denied
jide commented 10 years ago

Hey :) Thanks for the feedback !

First thing, you should not need sudo to install using homebrew... Does brew install libksba (just a test to see what happens without actually installing mariadb !) works without sudo ?

Secondly, you should use curl http://jide.github.io/clamp/install.sh | sudo sh to run the script using sudo ;)

revolunet commented 10 years ago

this gives

 ~ ▶ $ ▶brew install libksba
Error: Permission denied - /Library/Caches/Homebrew/Formula/libksba.brewing

Thanks for the handy tool :)

jide commented 10 years ago

Do you use homebrew otherwise ? Do not have any problem usually ? In case, brew doctor may help.

Did piping to sudo sh work ?

jide commented 10 years ago

It would be better to fix the homebrew issue actually, using sudo with homebrew is not advised.

revolunet commented 10 years ago

yes no problem with homebrew usually I don't need mariaDB so it finally worked

thanks