octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mercurial in OS 10.4.11 (was imread/imwrite)


From: Thomas L. Scofield
Subject: mercurial in OS 10.4.11 (was imread/imwrite)
Date: Thu, 19 Jun 2008 18:17:33 -0400


I've been using some scripts that Ben Abbott supplied me with.  The main script is

cd ~/devel/mercurial/octave
hg update -C default
cd ..
if [ -d "octave-3.0.0" ]; then
        rm -r octave-3.0.0
fi
if [ -f "octave-3.0.0.tar.gz" ]; then
        rm octave-3.0.0.tar.gz
fi
cp -r octave octave-3.0.0
cd octave-3.0.0
../osx_fix.sh
./autogen.sh
cd ..
tar cvzf octave-3.0.0.tar.gz octave-3.0.0
md5 octave-3.0.0.tar.gz
echo "(1) Add md5 to octave.info"
mate "/sw/fink/10.4/local/main/finkinfo/sci/octave.info"
sudo cp octave-3.0.0.tar.gz /sw/src/.
sudo fink rebuild octave
sudo fink remove octave
sudo fink install octave


while the osx_fix.sh script does as he describes in this note to Maintainers



Things progress along quite well for some time into the "make" process.  Here are the last few lines of output:

make -C src all
making DASPK-opts.cc from ../liboctave/DASPK-opts.in
making DASRT-opts.cc from ../liboctave/DASRT-opts.in
making DASSL-opts.cc from ../liboctave/DASSL-opts.in
making LSODE-opts.cc from ../liboctave/LSODE-opts.in
making NLEqn-opts.cc from ../liboctave/NLEqn-opts.in
making Quad-opts.cc from ../liboctave/Quad-opts.in
making defaults.h from defaults.h.in
making graphics.h
awk: syntax error at source line 413 in function emit_source source file ./genprops.awk
 context is
                dval = gensub >>>  (/^.*\{(.*)\}.*$/, <<<  "\"\\1\"", "g", dval);
awk: illegal statement at source line 414 in function emit_source source file ./genprops.awk
awk: syntax error at source line 439 source file ./genprops.awk
make[2]: *** [graphics.h] Error 2
make[1]: *** [src] Error 2
make: *** [all] Error 2
### execution of /var/tmp/tmp.2.W8ECNr failed, exit code 2


In answer to your python question, I appear to have two versions installed.  There is v. 2.3.5 installed in /usr/bin (and that is the one that comes first in my path), and v. 2.5.2 in /sw/bin which I must have installed using Fink.  I would not necessarily have thought, from the output above, that python versions were at the heart of my problem (and perhaps it is not).  On the other hand, I cannot imagine how a true syntax error has passed by other Mac users.

Thanks.

Thomas


On Jun 19, 2008, at 5:34 PM, Julian Schnidder wrote:

Hello Thomas!


Am 19.06.2008 um 23:16 schrieb Thomas L. Scofield:
I've not contributed before, and I still haven't figured out mercurial on my Intel Mac with OS 10.4.11.  So, I'll probably have questions along the way concerning these.

What version of python do you use?

I use the binary installer for python 2.5.2 from the python homepage.
Mercurial then installs  under /usr/local/lib/python2.5/site-packages/ and doesn't work for me.

You can try to

1. move the directories "hgext" and "mercurial" from /usr/local/lib/python2.5/site-packages to /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages and
2. place the attached files there too (to tell python of the presence of mercurial).

That solved the problem for me.

Kind regards,

JCS

<hgext.pth><mercurial.pth>



Thomas L. Scofield
--------------------------------------------------------
Associate Professor
Department of Mathematics and Statistics
Calvin College
--------------------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]