Hello everyone - I am trying to get Therion to work on a laptop. As far as I can tell, it is configured exactly the same as my desktop computer where Therion works just fine. Both systems are on the same version of Therion. Both are 64-bit Fedora 20. Both have the same set Texlive, Metapost and font packages. Therion.ini is identical. From a command prompt "mpost --version" produces the same output. I have checked file system permissions, and they all are the same. Any clues? What else should I look at? Thanks - Bill Gee ========== Therion.log file ========== therion 5.3.13 initialization file: /usr/local/etc/therion.ini reading ... done configuration file: thconfig reading ... done reading source files ... done preprocessing database ... done scanning centreline tree ... done searching for centerline loops ... done calculating station coordinates ... done calculating basic statistics ... done processing extended elevation ... done processing references ... done selecting export objects ... done processing projection plan ... done average distortion: 3.55% writing AllieSpringCave.pdf ... ####################### metapost log file ######################## therion: warning -- can't open data.log file for input can't open data.log file for input#################### end of metapost log file #################### therion: error -- metapost exit code -- 256 writing xtherion file ... done ============ Output from therion --print-environment -------------- therion 5.3.13 sh: cavern: command not found initialization file: /usr/local/etc/therion.ini reading ... done configuration file: thconfig reading ... done INIT=/home/bgee/.therion:/etc:/usr/etc:/usr/local/etc SOURCE=/home/bgee/.therion:/usr/share/therion:/usr/local/share/therion: CAVERN=cavern METAPOST=mpost PDFTEX=pdfetex IDENTIFY=identify CONVERT=convert
+++ Bill Gee [2014-03-25 11:00 -0500]:
Hello everyone -
I am trying to get Therion to work on a laptop. As far as I can tell, it is configured exactly the same as my desktop computer where Therion works just fine.
Both systems are on the same version of Therion. Both are 64-bit Fedora 20. Both have the same set Texlive, Metapost and font packages. Therion.ini is identical. From a command prompt "mpost --version" produces the same output. I have checked file system permissions, and they all are the same.
Any clues? What else should I look at?
Hmm.
writing AllieSpringCave.pdf ... ####################### metapost log file ######################## therion: warning -- can't open data.log file for input can't open data.log file for input#################### end of metapost log file
I think these are the files that go in thtmpdir during processing. that's normally a tmpdir 'th<something>' in /tmp, but I'm not sure what sets it to that. There is an option to not delete those files after processing which might give you a clue. Something about your tmp setup between machines might be at issue here (although I can't think what)? Wookey -- Principal hats: Linaro, Emdebian, Wookware, Balloonboard, ARM http://wookware.org/
Hi Wookey - If I add "-d" as a command line option in xTherion, then a directory called thTMPDIR is created under the directory containing the map source files. On the machine that fails, the directory contains only five files. One of them is data.mp. I do not see a data.log file on either computer. On a working computer the directory contains about 40 or 50 files. On both working and not-working computers - there is no environment variable called tmp or temp. The /tmp directory exists and has 1777 permissions. There is a temp directory under the user home directory which has 0777 permissions. The directory holding the source files has 0775 permissions. The source files directory and the files it contains are owned by the same user account that is running xTherion. If I try to compile the map as root user, it produces the same error. I hauled out the strace utility to see if I could figure out what file it is barfing on. It was not much help. It is failing to open a lot of files. I suspect many of those errors are simply the process of searching for files that might be in several places. I tried running "therion -x thconfig" from the command line instead of from inside xTherion. This produced two new lines of error: ============ Sorry, I can't find the 'mpost' preload file; will try 'plain'. I can't find the 'plain' preload file! ============ Regards - Bill Gee On Tuesday, March 25, 2014 17:14:31 Wookey wrote:
+++ Bill Gee [2014-03-25 11:00 -0500]:
Hello everyone -
I am trying to get Therion to work on a laptop. As far as I can tell, it is configured exactly the same as my desktop computer where Therion works just fine.
Both systems are on the same version of Therion. Both are 64-bit Fedora 20. Both have the same set Texlive, Metapost and font packages. Therion.ini is identical. From a command prompt "mpost --version" produces the same output. I have checked file system permissions, and they all are the same.
Any clues? What else should I look at?
Hmm.
writing AllieSpringCave.pdf ... ####################### metapost log file ######################## therion: warning -- can't open data.log file for input can't open data.log file for input#################### end of metapost log file I think these are the files that go in thtmpdir during processing. that's normally a tmpdir 'th<something>' in /tmp, but I'm not sure what sets it to that.
There is an option to not delete those files after processing which might give you a clue.
Something about your tmp setup between machines might be at issue here (although I can't think what)?
Wookey
in file data.mp is all what was possible to process up to error. Compare both data.mp files. m.s. 25. 3. 2014 v 20:46, Bill Gee <bgee@campercaver.net>:
On the machine that fails, the directory contains only five files. One of them is data.mp.
Martin Sluka - Studio Sluka prodej Hahnemühle DFA tisk fotografií, reprodukcí a volné tvorby Na Rovnosti 2692/21 130 00 Praha 3 tel.: +420 603513640 mail: martinsluka@mac.com web: http://www.piezografie.cz
Hi Martin - I ran diff on the data.mp files from working and not-working computers. They are identical, byte for byte. Regards - Bill Gee On Wednesday, March 26, 2014 00:09:57 Martin Sluka wrote:
in file data.mp is all what was possible to process up to error.
Compare both data.mp files.
m.s.
25. 3. 2014 v 20:46, Bill Gee <bgee@campercaver.net>:
On the machine that fails, the directory contains only five files. One of them is data.mp.
Martin Sluka - Studio Sluka
prodej Hahnemühle DFA tisk fotografií, reprodukcí a volné tvorby
Na Rovnosti 2692/21 130 00 Praha 3 tel.: +420 603513640 mail: martinsluka@mac.com web: http://www.piezografie.cz
So what is the difference? m. 26. 3. 2014 v 0:47, Bill Gee <bgee@campercaver.net>:
They are identical, byte for byte.
Martin Sluka - Studio Sluka prodej Hahnemühle DFA tisk fotografií, reprodukcí a volné tvorby Na Rovnosti 2692/21 130 00 Praha 3 tel.: +420 603513640 mail: martinsluka@mac.com web: http://www.piezografie.cz
Hi Bill, it looks, your metapost installation is missing format files or there are paths not set up correctly. Try running mpost data.mp in thTMPDIR folder, but it will probably generate missing preload file error too. It is really strange, normally plain formats are installed with the TeX. May be some reinstallation of metapost would help, otherwise you will have to figure out, how to generate formats on Fedora linux. I would first try "sudo mktexlsr". This should rescan paths in your tex installation. Then I would try "sudo fmtutil -all". This should recreate all format files again. HTH, S. On 26 March 2014 00:47, Bill Gee <bgee@campercaver.net> wrote:
Hi Martin -
I ran diff on the data.mp files from working and not-working computers. They are identical, byte for byte.
Regards - Bill Gee
On Wednesday, March 26, 2014 00:09:57 Martin Sluka wrote:
in file data.mp is all what was possible to process up to error.
Compare both data.mp files.
m.s.
25. 3. 2014 v 20:46, Bill Gee <bgee@campercaver.net>:
On the machine that fails, the directory contains only five files. One of them is data.mp.
Martin Sluka - Studio Sluka
prodej Hahnemühle DFA tisk fotografií, reprodukcí a volné tvorby
Na Rovnosti 2692/21 130 00 Praha 3 tel.: +420 603513640 mail: martinsluka@mac.com web: http://www.piezografie.cz
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
Hi Stacho - As you suspected - Running "mpost data.mp" in the thTMPDIR directory only produced messages about missing preload files. I went to root and ran mktexlsr. WooHoo! That fixed the problem! "mpost data.mp" runs to completion, and it also works when run from inside xTherion. I ran "fmtutil --all" just in case something else was missing. There is no way to tell how the problem was created. I installed Therion on this computer a couple of months ago, but have not needed to use it until last weekend. I am sure I would have tried compiling a map when I did the installation ... but maybe not. Many thanks for your help! This is one I would never have figured out on my own. Bill Gee On Wednesday, March 26, 2014 09:57:57 Stacho Mudrak wrote:
Hi Bill,
it looks, your metapost installation is missing format files or there are paths not set up correctly.
Try running mpost data.mp in thTMPDIR folder, but it will probably generate missing preload file error too.
It is really strange, normally plain formats are installed with the TeX. May be some reinstallation of metapost would help, otherwise you will have to figure out, how to generate formats on Fedora linux.
I would first try "sudo mktexlsr". This should rescan paths in your tex installation.
Then I would try "sudo fmtutil -all". This should recreate all format files again.
HTH, S.
On 26 March 2014 00:47, Bill Gee <bgee@campercaver.net> wrote:
Hi Martin -
I ran diff on the data.mp files from working and not-working computers.
They
are identical, byte for byte.
Regards - Bill Gee
On Wednesday, March 26, 2014 00:09:57 Martin Sluka wrote:
in file data.mp is all what was possible to process up to error.
Compare both data.mp files.
m.s.
25. 3. 2014 v 20:46, Bill Gee <bgee@campercaver.net>:
On the machine that fails, the directory contains only five files. One of them is data.mp.
Martin Sluka - Studio Sluka
prodej Hahnemühle DFA tisk fotografií, reprodukcí a volné tvorby
Na Rovnosti 2692/21 130 00 Praha 3 tel.: +420 603513640 mail: martinsluka@mac.com web: http://www.piezografie.cz
_______________________________________________ Therion mailing list Therion@speleo.sk http://mailman.speleo.sk/mailman/listinfo/therion
+++ Bill Gee [2014-03-26 07:24 -0500]:
Hi Stacho -
As you suspected - Running "mpost data.mp" in the thTMPDIR directory only produced messages about missing preload files.
I went to root and ran mktexlsr. WooHoo! That fixed the problem! "mpost data.mp" runs to completion, and it also works when run from inside xTherion.
That suggests a packaging bug in some tex/metpost package on fedora, which should have run that as a post-install action. This would be good to isolate/report, but without being (becoming :-) a tex/metpost geek you made find this hard to track down. Wookey -- Principal hats: Linaro, Emdebian, Wookware, Balloonboard, ARM http://wookware.org/
participants (4)
-
Bill Gee -
Martin Sluka -
Stacho Mudrak -
Wookey