nicolargo / glancesautoinstall

Glances Auto Install script
MIT License
60 stars 42 forks source link

MacOS X Compability #20

Closed ss89 closed 5 years ago

ss89 commented 7 years ago

Hey guys,

i would love to see OS X Compability here. A "pip install glances" on OS X Sierra worked just fine and glances started without any visible issues to me. If you need any information to make this work, i will be giving them to you asap.

best regards, ss89

nicolargo commented 7 years ago

Hi @ss89 ,

is pip install by default ?

On my macOS Sierra 10.12.5:

pip install glances
pip: command not found

The GlancesAutoInstall script needs to install all the dependencies (pip and others...) before processing the Glances and libs install...

ss89 commented 7 years ago

Hi @nicolargo,

seems you are right, it is not installed by default. I must have installed it via brew. The 'default' way seems to be:

nicolargo commented 7 years ago

I try this:

curl -O https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

Ok pip is installed !

But....

sudo pip install glances

Failed: Error: Need 'cc' while installing PsUtil...

Ask to installl Xcode !!!!

4.54 GB...

ss89 commented 7 years ago

The command line tools are 160mb in download size. https___developer_apple_com_download_more_

scottcc commented 6 years ago

Seems to work for me on multiple OSX machines here, my steps; brew install python then pip2 install glances (then I did pip2 install bottle to get the -w arg to work).

nicolargo commented 5 years ago

Should be done in the latest commit.

@ss89 / @scottcc Can you test it (i do not have any Mac OS X on my side)...

ss89 commented 5 years ago

@nicolargo looks like its working for me. I had glances installed before, so i had to:

pip uninstall glances
pip install glances

Thanks a lot!