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

psutil-0.2.1 failed to compile #160

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

psutil-0.2.1 failed to compile #160

giampaolo opened this issue May 23, 2014 · 3 comments

Comments

@giampaolo
Copy link
Owner

From pamal...@gmail.com on May 05, 2011 04:38:46

What steps will reproduce the problem?  
1. Download psutil-0.2.1.tar.gz
2. Untar the file.
3. cd psutil-0.2.1; python setup.py install 

What is the expected output?  


What do you see instead?  
Expected: Compilation logs and successfully install. 
Actual: 
/usr/bin/ld:built in linker script:4: syntax error
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1 

What version of psutil are you using? What Python version?  
psutil: 0.2.1
Python: 2.5.2 

On what operating system? Is it 32bit or 64bit version?  
Fedora Core 10 32-bit Please provide any additional information below.

Attachment: log.log

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

@giampaolo
Copy link
Owner Author

From jlo...@gmail.com on May 05, 2011 13:07:36

I can't reproduce any problem with the linker on this build... can you show the 
full output? It seems like there's some output missing when compared against 
what I see on my system. What shell are you using? 

What about the parameters in 

gcc -pthread -shared build/temp.linux-i686-2.5/psutil/_psutil_linux.o 
-L/usr/lib -lpython2.5 -o build/lib.linux-i686-2.5/_psutil_linux.so

Does this look right to you? i.e. do you have the python2.5 libs installed and 
should it be pointing to /usr/lib ? Mine looks different here (albeit with 
Python 2.4): 

gcc -pthread -shared build/temp.linux-i686-2.4/psutil/_psutil_linux.o -o 
build/lib.linux-i686-2.4/_psutil_linux.so

@giampaolo
Copy link
Owner Author

From pamal...@gmail.com on May 06, 2011 01:14:35

It is ok now. It seems like it is an config problem at the OS level. 

I reinstalled a fresh copy of Fedora 10, everything just works.

@giampaolo
Copy link
Owner Author

From jlo...@gmail.com on May 06, 2011 07:26:47

Ok thanks for the update, I'll go ahead and close this out then :)

Status: Invalid

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