Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Singular, ESingular error under cygwin yet again
PostPosted: Sun Jul 29, 2007 6:50 pm 

Joined: Sun Jan 08, 2006 8:36 pm
Posts: 14
Location: Amherst, MA
I upgraded cygwin, including its Singular distribution, to the current version and, yet once again, when I run command Singular I'm getting the familiar Segment fault/Bus error after which Singular hangs. Per earlier posts in this forum, if I add the line

Code:
export PATH=/bin:/usr/bin:usr/X11R6/bin


before the final line of script binSingular, then I can run Singular at the Bash command line and I can run the Windows shortcut Singular (rxvt).

However, despite the earlier posts, if I add that line before the final line of script binESingular, still ESingular bombs, with the following error message:

Code:
  Error: Execution of
/bin/xemacs-21.4.20.exe -no-init-file -eval'(progn (setq singular-emacs-home-directory "/usr/share/Singular/emacs")
  (load-file "/usr/share/Singular/emacs/.emacs-singular")
  (singular-other "/usr/lib/Singular/Singular.exe" "/cygdrive/e/Documentation/CygwinHome/" (list) "singular"))'


Part of the problem may be my confusion as to whether simply to edit the existing export PATH lines in the two scrips or add the additional line suggested...

Thus in script "Singular", the last two lines, lines 9 and 10, as distributed are:

Code:
  export PATH="/usr/lib/Singular:$PATH"
  exec /usr/lib/Singular/Singular.exe $*


I replaced that export statement with the following, and all seemed OK:

Code:
  export PATH=/bin:/usr/bin:usr/X11R6/bin


But should it have been, instead, the following:

Code:
  export PATH="/bin:/usr/bin:usr/X11R6/bin:/usr/lib/Singular:$PATH"


(or something else)?

However, similarly editing ESingular still causes that to bomb with the indicated error. The last three lines of ESingular were:

Code:
export PATH="/usr/lib/Singular:/usr/X11R6/bin:$PATH"
export PATH=/bin:/usr/bin:usr/X11R6/bin:/usr/lib/Singular
if [ -z $DISPLAY ]; then export DISPLAY=:0.0; fi
exec /usr/lib/Singular/ESingular.exe $*


I tried replacing the "export PATH" statement with just
Code:
  export PATH=/bin:/usr/bin:usr/X11R6/bin

as well as replacing it, instead, with:
Code:
export PATH="/bin:/usr/bin:usr/X11R6/bin:/usr/lib/Singular:$PATH"

But in each case I got the indicated error when I tried to run command ESingular at the Bash command line.

???


Report this post
Top
 Profile  
Reply with quote  
 Post subject: to clarify: ESingular works with export at command line
PostPosted: Sun Jul 29, 2007 7:11 pm 

Joined: Sun Jan 08, 2006 8:36 pm
Posts: 14
Location: Amherst, MA
Just to clarify: If I start the cygwin Bash shell and execute directly there

Code:
export PATH=PATH=/bin:/usr/bin:usr/X11R6/bin


then ESingular works OK. The only problem I'm having (after I fixed the /bin/Singular script) is getting that command to work if it is placed into the /bin/ESingular script.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks for the fix!!!
PostPosted: Mon Aug 20, 2007 4:03 am 
I had just had my machine fixed and I was wondering if something was still broken here. Entered your patch and now it is working.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 11:04 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group