mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Issue with embedding Mathematica into TeXmacs


Chronological Thread 
  • From: Madhusudan Singh <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Issue with embedding Mathematica into TeXmacs
  • Date: Fri, 4 Aug 2006 22:05:17 -0400
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=lI9p8qx3evhOl/OYMuIKdTWlWxuEOjN/88oNXkYeOb/98G/1dRExPoT8hbprqqqr8yDt0aCeVn5vButy8zKA0vy3rHAZw6oSP1oyGexqP3cabxz6tcphv7Ebw4WIxK0X+ckypil8UYNADzfWZzh6NvOLJFGOveLqw278rWrm1mA=

On Fri August 4 2006 3:10 pm, Joris van der Hoeven wrote:
> On Fri, Aug 04, 2006 at 01:45:16PM -0400, Madhusudan Singh wrote:
> > I also see a bunch of permission denied errors in the console (which do
> > not include Mathematica - but this is worrisome - Matlab also seems
> > affected) :
> >
> > <unnamed port>: In procedure open-file in expression (primitive-load
> > name): <unnamed port>: Permission
> > denied: "/usr/local/share/TeXmacs/plugins/axiom/progs/init-axiom.scm"
>
> [...]
>
> This indicates that something must be wrong with your installation.
> Uninstall everything, remove ~/.TeXmacs, reinstall, check whether
> the directories where you install TeXmacs are readable and try again...

Did that. Found that all except the Mathematica plugin directory had only
permission bits 440 as root.root instead of root.user (which explains the
permission problems). To fix this, I issued :

/usr/local/share/TeXmacs/plugins# chmod -R +r */progs

This gets rid of the startup permission problems and restores a lot of the
missing Sessions, but starting Mathematica still fails due to a permission
problem :

gcc -o /home/m_singh/.TeXmacs/bin/tm_mathematica.bin
src.lazy/tm_mathematica.c -I
/usr/local/Wolfram/Mathematica/5.0/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions
-L
/usr/local/Wolfram/Mathematica/5.0/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions
-lML
Error in Mathematica plugin installation
cc1: error: src.lazy/tm_mathematica.c: Permission denied
make: *** [/home/m_singh/.TeXmacs/bin/tm_mathematica.bin] Error 1
mathematica]

Now, I realized that files under src.lazy in each of these plugins were also
set to 440 bits. Added the read permission (never had to do this - shouldn't
the files be installed as belonging to root.user instead of root.root as they
are ?). Now, Mathematica seems to load :

gcc -o /home/m_singh/.TeXmacs/bin/tm_mathematica.bin
src.lazy/tm_mathematica.c -I
/usr/local/Wolfram/Mathematica/5.0/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions
-L
/usr/local/Wolfram/Mathematica/5.0/AddOns/MathLink/DeveloperKit/Linux/CompilerAdditions
-lML
Mathematica
src.lazy/tm_mathematica.c: In function 'command':
src.lazy/tm_mathematica.c:147: warning: passing argument 2 of 'MLGetString'
from incompatible pointer type
src.lazy/tm_mathematica.c:155: warning: passing argument 2 of 'MLGetString'
from incompatible pointer type
src.lazy/tm_mathematica.c:162: warning: passing argument 2 of 'MLGetString'
from incompatible pointer type
src.lazy/tm_mathematica.c:169: warning: passing argument 2 of 'MLGetString'
from incompatible pointer type
src.lazy/tm_mathematica.c:186: warning: passing argument 2 of 'MLGetSymbol'
from incompatible pointer type
src.lazy/tm_mathematica.c:187: warning: passing argument 2 of 'MLGetString'
from incompatible pointer type
src.lazy/tm_mathematica.c:196: warning: passing argument 2 of 'MLGetString'
from incompatible pointer type
src.lazy/tm_mathematica.c:211: warning: passing argument 2 of 'MLGetString'
from incompatible pointer type
src.lazy/tm_mathematica.c:225: warning: passing argument 2 of 'MLGetString'
from incompatible pointer type
In[1]:=

Thanks for the help. Wonder if the improper install is a bug in the CVS
version.



Archive powered by MHonArc 2.6.19.

Top of page