Fri 03 Oct 2003 02:43:04 AM UTC, original submission:
Hey:
As I mentioned in BUG 5706, the build for 1.0.1 worked. What I did not mention is that it will not run because it cannot find the files it needs.
Basically, the "INSTALL" file has incorrect info and not enough, too. Frustration Level Is Too High(FLITH) right now so here's some notes I made:
ACTUAL OUTPUT from "make install":
$> make install
mkdir -p /usr/local/libexec/TeXmacs-1.0.1
mkdir -p /usr/local/libexec/TeXmacs-1.0.1/bin
mkdir -p /usr/local/libexec/TeXmacs-1.0.1/lib
cp -r -f TeXmacs-1.0.1/bin/texmacs.bin /usr/local/libexec/TeXmacs-1.0.1/bin
cp -r -f TeXmacs-1.0.1/bin/tm_* /usr/local/libexec/TeXmacs-1.0.1/bin
cp -r -f TeXmacs-1.0.1/bin/_filter /usr/local/libexec/TeXmacs-1.0.1/bin
cp -r -f TeXmacs-1.0.1/bin/_setup /usr/local/libexec/TeXmacs-1.0.1/bin
strip /usr/local/libexec/TeXmacs-1.0.1/bin/texmacs.bin
cp -r -f TeXmacs-1.0.1/lib/*.so /usr/local/libexec/TeXmacs-1.0.1/lib 2>/dev/null || :
strip /usr/local/libexec/TeXmacs-1.0.1/lib/*.so 2>/dev/null || :
chmod -f 755 /usr/local/libexec/TeXmacs-1.0.1/bin/*
chmod -f 755 /usr/local/libexec/TeXmacs-1.0.1/lib/*.so 2>/dev/null || :
rm -f /usr/local/libexec/TeXmacs-1.0.1/lib/*.a
installed TeXmacs executables in /usr/local/libexec/TeXmacs-1.0.1
mkdir -p /usr/local/share/TeXmacs-1.0.1
cp -r -f TeXmacs-1.0.1/LICENSE /usr/local/share/TeXmacs-1.0.1
cp -r -f TeXmacs-1.0.1/doc /usr/local/share/TeXmacs-1.0.1
cp -r -f TeXmacs-1.0.1/fonts /usr/local/share/TeXmacs-1.0.1
cp -r -f TeXmacs-1.0.1/langs /usr/local/share/TeXmacs-1.0.1
cp -r -f TeXmacs-1.0.1/misc /usr/local/share/TeXmacs-1.0.1
cp -r -f TeXmacs-1.0.1/packages /usr/local/share/TeXmacs-1.0.1
cp -r -f TeXmacs-1.0.1/progs /usr/local/share/TeXmacs-1.0.1
cp -r -f TeXmacs-1.0.1/styles /usr/local/share/TeXmacs-1.0.1
cp -r -f TeXmacs-1.0.1/texts /usr/local/share/TeXmacs-1.0.1
chmod -f -R go=rX /usr/local/share/TeXmacs-1.0.1
installed TeXmacs data in /usr/local/share/TeXmacs-1.0.1
mkdir -p /usr/local/bin
chmod -f 755 TeXmacs-1.0.1/bin/*
cp -r -f TeXmacs-1.0.1/bin/fig2ps /usr/local/bin
cp -r -f TeXmacs-1.0.1/bin/texmacs /usr/local/bin
installed TeXmacs startup scripts in /usr/local/bin
mkdir -p /usr/local/include
cp -r -f TeXmacs-1.0.1/include/TeXmacs.h /usr/local/include
chmod -f go=rX /usr/local/include/TeXmacs.h
installed TeXmacs include files in /usr/local/include
mkdir -p /usr/local/man
mkdir -p /usr/local/man/man1
cp -r -f misc/man/fig2ps.1 /usr/local/man/man1
cp -r -f misc/man/texmacs.1 /usr/local/man/man1
gzip -f /usr/local/man/man1/fig2ps.1
gzip -f /usr/local/man/man1/texmacs.1
chmod -f go=rX /usr/local/man/man1/fig2ps.1.gz
chmod -f go=rX /usr/local/man/man1/texmacs.1.gz
installed TeXmacs manual pages in /usr/local/man
----------------------------------------------------
TeXmacs has been successfully installed
Yea, right. :?/
$> texmacs
Fatal error: guile seems not to be installed on your system in 'install_texmacs'
huh?
NOTE:
the ./configure found it:
...
checking version of g++... 3.3.1
checking for Guile... yes
...
These do NOT help:
ln -s /usr/bin/guile.exe /usr/local/bin/guile
ln -s /usr/bin/guile.exe /usr/local/libexec/TeXmacs-1.0.1/bin/guile
Note:
$> path
/usr/local/bin:/usr/bin:/bin:/usr/local/bin/i686-pc-cygwin:/usr/X11R6/<...blah>
The texmacs script adds these:
TEXMACS_BIN_PATH=/usr/local/libexec/TeXmacs-1.0.1
PATH="$TEXMACS_BIN_PATH/bin:$PATH"
LD_LIBRARY_PATH="$TEXMACS_BIN_PATH/lib${LD_LIBRARY_PATH+":$LD_LIBRARY_PATH"}"
Note: $TEXMACS_BIN_PATH/lib is EMPTY(see make install)
OK, I added the $PATH info from the "INSTALL" file.
$> export TEXMACS_PATH=/usr/local/libexec/TeXmacs-1.0.1
$> export PATH=$TEXMACS_PATH/bin:$PATH
and it got a bit further:
$> texmacs
TeXmacs]
TeXmacs] The GUILE_LOAD_PATH is /usr/local/libexec/TeXmacs-1.0.1/progs
TeXmacs] Installation problem: please send a bug report.
TeXmacs] The initialization file init-texmacs.scm could not be found.
TeXmacs] Please check the values of the environment variables
TeXmacs] TEXMACS_PATH and GUILE_LOAD_PATH. init-texmacs.scm should
TeXmacs] be readable and in the directory $TEXMACS_PATH/progs.
TeXmacs]
***
Of course $TEXMACS_PATH/progs does NOT exist...
so go-a-huntin...
'.../progs' was NOT created in exec dir
It is under "/usr/local/share/TeXmacs-1.0.1" ... :?/
So reset $PATH:
$> export TEXMACS_PATH=/usr/local/share/TeXmacs-1.0.1
THIS IS WRONG: $> export PATH=$TEXMACS_PATH/bin:$PATH
since NO "bin" is in /usr/local/share/TeXmacs-1.0.1
If I leave the path as is
$> echo $PATH
/usr/local/libexec/TeXmacs-1.0.1/bin:/usr/local/bin:/usr/bin:/bin:/...blah...
It returns to 'guile not found'.
Note: GUILE_LOAD_PATH must be a temp env variable; however, adding
export GUILE_LOAD_PATH=/usr/local/share/TeXmacs-1.0.1/progs
does not help.
And around and around and around we go.... :/
After numerous variations using
$> echo $TEXMACS_PATH
/usr/local/share/TeXmacs-1.0.1
leading to
$> echo $PATH
/usr/local/share/TeXmacs-1.0.1/progs:/usr/local/libexec/TeXmacs-1.0.1/bin:/usr/local/libexec/TeXmacs-1.0.1:/usr/local/share/TeXmacs-1.0.1:/usr/local/bin:/usr/bin:...blah...
I gave up( FLITH ).
***
It should not be this much trouble. Really. TeXmacs installs everything and TeXmacs should know where it installs everything and where every file it needs is actually located. ...
ICBW, but it looks like you need to have
export TEXMACS_DATA_PATH=[installation directory]
('share')
export TEXMACS_BIN_PATH=[installation directory]
('bin')
export GUILE_LOAD_PATH=[installation directory]
('progs')
defined somewhere in the (make) install.
Also,
export PATH=$<ALL TeXmacs required paths>:$PATH
needs to be done.
It does little good to append info to the LD_LIBRARY_PATH when the referenced path is EMPTY. Maybe libexec/TeXmacs<version>/lib is supposed to have some files in it...???.
IMO, it would also be smart to append that info to /etc/profile and/or $USER/.profile if it exists... and if either/both does/do not exist, please tell the user at the end of the make install to set the environment vars.
I have not tried this build(or any of the recent releases) in a 'real' Linux; not sure that I want to try...
|