ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 10 Jun 2016 00:23:54 +0200RuntimeError when starting pari/library not foundhttps://ask.sagemath.org/question/33725/runtimeerror-when-starting-parilibrary-not-found/ Hello,
I am using a binary distribution of sage 7.1 for debian jessie and "installed" it to /opt.
Now, when I want to use pari, I get a runtime error:
```
sage: %gp
```
```
--> Switching to PARI/GP interpreter <--
```
```
pari: sqrt(4)
```
```
RuntimeError: unable to start pari
```
The full backtrace can be found here: paste.kde.org/pvqeoh3ve
however, the following works:
```
LD_LIBRARY_PATH=/opt/sage-7.1/local/lib sage
```
It seems that sage is unable to find that library when starting pari.
Setting SAGE_ROOT does not help. Did I miss some configuration file to set the library path for sage?
Thu, 09 Jun 2016 14:58:27 +0200https://ask.sagemath.org/question/33725/runtimeerror-when-starting-parilibrary-not-found/Answer by nbruin for <p>Hello,</p>
<p>I am using a binary distribution of sage 7.1 for debian jessie and "installed" it to /opt.</p>
<p>Now, when I want to use pari, I get a runtime error:
<code>
sage: %gp
</code>
<code>
--> Switching to PARI/GP interpreter <--
</code>
<code>
pari: sqrt(4)
</code>
<code>
RuntimeError: unable to start pari
</code></p>
<p>The full backtrace can be found here: paste.kde.org/pvqeoh3ve</p>
<p>however, the following works:
<code>
LD_LIBRARY_PATH=/opt/sage-7.1/local/lib sage
</code>
It seems that sage is unable to find that library when starting pari.</p>
<p>Setting SAGE_ROOT does not help. Did I miss some configuration file to set the library path for sage?</p>
https://ask.sagemath.org/question/33725/runtimeerror-when-starting-parilibrary-not-found/?answer=33729#post-id-33729Binary distributions have a problem with "gp". See:
http://trac.sagemath.org/ticket/20592
Your `LD_LIBRARY_PATH" workaround is reasonable, so if it works, that's great. The above ticket is resolved, so I expect new binary distributions shouldn't have this problem anymore. I don't know if 7.2 has already been produced with the fixed tools.Fri, 10 Jun 2016 00:23:54 +0200https://ask.sagemath.org/question/33725/runtimeerror-when-starting-parilibrary-not-found/?answer=33729#post-id-33729