On Fri, Oct 31, 2008 at 7:53 PM, mabshoff <[EMAIL PROTECTED]> wrote:
>
>
>
> On Oct 31, 7:49 pm, mhampton <[EMAIL PROTECTED]> wrote:
>> I never used the former version much at all, but trying this out it
>> seems pretty snappy at the moment - almost as fast as my macbook (2.4
>> GHz core 2 duo).
>>
>> I did get an error trying to use phc, maybe that's not news but if so
>> here it is:
>
> phc is not installed in all likelyhood - plain and simple :).
>
>> sh: phc: Permission denied
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>>   File "/home/sage/sagenb/sage_notebook/worksheets/mhampton/0/code/
>> 15.py", line 10, in <module>
>>     sol = phc.blackbox(start_sys, R2)        #optional
>>   File "/home/sage/sage/local/lib/python2.5/site-packages/sage/
>> interfaces/phc.py", line 879, in blackbox
>>     print os.system('which phc') + '  PHC needs to be installed and in
>> your path'
>> TypeError: unsupported operand type(s) for +: 'int' and 'str'
>>
>> -Marshall
>
>
> But I would highly suggest that someone (i.e. you) make phc detection
> much more robust. "which" usually returns an error code unequal to
> zero (it doesn't on Solaris :(), so that is what you should check and
> otherwise throw a proper exception.

Actually, phc *is* installed, but it mysteriously doesn't work:

[EMAIL PROTECTED]:~/sage/local/bin$ ls -lh phc
-rwxr-x--- 1 sage sage 9.5M 2008-02-08 12:40 phc
[EMAIL PROTECTED]:~/sage/local/bin$ ./phc
-bash: ./phc: No such file or directory
[EMAIL PROTECTED]:~/sage/local/bin$ file ./phc
./phc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped

The 32-bitness is likely the problem.

Stupid @$($('ing binaries.  Anyway,

[EMAIL PROTECTED]:~/sage/local/bin$ sudo apt-get install libc6-i386

[EMAIL PROTECTED]:~/sage/local/bin$ ./phc
Welcome to PHC (Polynomial Homotopy Continuation) v2.3.39  8 Feb 2008

and now it works.

Thanks Marshall for the heads up!

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to