Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Solaris 10 #422

Closed
giampaolo opened this issue May 23, 2014 · 2 comments
Closed

Support Solaris 10 #422

giampaolo opened this issue May 23, 2014 · 2 comments

Comments

@giampaolo
Copy link
Owner

From g.rodola on August 25, 2013 17:17:52

Currently psutil won't compile on Solaris 10:

[psutil@nitrogen/ttypts/1(~/psutil)%] python setup.py build 
/opt/csw/lib/python/distutils/dist.py:266: UserWarning: Unknown distribution 
option: 'test_suite'
  warnings.warn(msg)
running build
running build_py
running build_ext
building '_psutil_sunos' extension
/opt/SUNWspro/bin/cc -xO3 -m32 -xarch=sparc -OPT:Olimit=0 -xO3 -m32 
-xarch=sparc -DNDEBUG -O -xcode=pic32 -I/opt/csw/include/python2.6 -c 
psutil/_psutil_sunos.c -o 
build/temp.solaris-2.10-sun4u-2.6/psutil/_psutil_sunos.o
unable to execute /opt/SUNWspro/bin/cc: No such file or directory
error: command '/opt/SUNWspro/bin/cc' failed with exit status 1


According to http://en.wikipedia.org/wiki/Solaris_(operating_system) Solaris 11 
appeared in late 2010 so I suppose there's a lot of Solaris 10 installations 
out there. Definitively looks like a platform we want to support.

Original issue: http://code.google.com/p/psutil/issues/detail?id=422

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From manch...@gmail.com on September 10, 2013 11:22:07

this error just means you don't have the Sun compiler installed. you can build 
the shared object files with gcc. I had to do it manually because python (and 
therefore pycc) is expecting to use the sun C compiler and therefore uses 
options like -KPIC which don't work.

here are the gcc commands i used to build the shared libraries:

    gcc -I/usr/include/python2.6 -c psutil/_psutil_sunos.c -o 
build/temp.solaris-2.10-i86pc-2.6/psutil/_psutil_sunos.o

    gcc -L. -L/usr/sfw/lib -R/usr/sfw/lib -G 
build/temp.solaris-2.10-i86pc-2.6/psutil/_psutil_sunos.o -L/usr/lib -lkstat 
-lnsl -lpython2.6 -o build/lib.solaris-2.10-i86pc-2.6/_psutil_sunos.so

    gcc  -I/usr/include/python2.6 -c psutil/_psutil_posix.c -o 
build/temp.solaris-2.10-i86pc-2.6/psutil/_psutil_posix.o

    gcc -L. -L/usr/sfw/lib -R/usr/sfw/lib -G 
build/temp.solaris-2.10-i86pc-2.6/psutil/_psutil_posix.o -L/usr/lib -lpython2.6 
-o build/lib.solaris-2.10-i86pc-2.6/_psutil_posix.so

@giampaolo
Copy link
Owner Author

Closing as (a fixed) duplicate of #610.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant