Re: lyx-2.2.0 installation ./configure cannot find libmagic
On 06/26/2016 04:24 PM, Jean-Marc Lasgouttes wrote: Le 26/06/2016 14:23, Michael Berger a écrit : Hope that's right, Michael Yes it is. The problem is that your libraries are not usable (32bits versus 64?) JMarc configure:9132: g++ -o conftestconftest.cpp -lmagic-lz >&5 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-mageia-linux-gnu/4.9.2/../../../libmagic.so when searching for -lmagic /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-mageia-linux-gnu/4.9.2/../../../libmagic.a when searching for -lmagic /usr/bin/ld: skipping incompatible /lib/libmagic.so when searching for -lmagic /usr/bin/ld: skipping incompatible /lib/libmagic.a when searching for -lmagic /usr/bin/ld: skipping incompatible /usr/lib/libmagic.so when searching for -lmagic /usr/bin/ld: skipping incompatible /usr/lib/libmagic.a when searching for -lmagic /usr/bin/ld: cannot find -lmagic Dear Jean-Marc, after reading your above comment last night I started RPM Search and found libmagic x86_64 versions which I tried to install. And when I started *another computer* this morning Mageia's Software Manger offered lib64magic-devel and php-devel, both x86_64. Coincidence or luck or whatever it was, the installation of Lyx 2.2.0 (as root) ran smoothly without any complaint and Lyx 2.2 showed up. At this point I would like to thank you for helping me! One more question though: What to do next to give LyX access to TL2016? I have TL2016 installed and the GUI is active. Mageia's Software manager offers eight texlive2013 packages, but non of it installed. I started Lyx 2.2, created a new document (KOMA article) and exported it to PDF - all worked fine. One user advised to type '/usr/local/texlive/2016/bin/x86_64-linux' in the PATH prefix of Lyx's Preferences - which I haven't done yet. So, are there no further actions to be taken from my side ? Great help and great programs! Cheers, Michael
Re: Script to repeatedly compile a document
On Sun, Jun 26, 2016 at 10:57:22PM -0400, Steve Litt wrote: > Hi all, > > The following is a script to repeatedly compile a LyX document that's > under construction or debugging: > > == > #!/bin/sh > > mainname=ch20 > > flagg=a > > while [ "$flagg" != "q" ]; do > rm $mainname.tex > rm $mainname.aux > rm $mainname.pdf > rm $mainname.log > rm $mainname.dvi > lyx --export xetex $mainname.lyx Why not use use the following? lyx --export pdf4 $mainname.lyx It creates a PDF directly so you don't have to manually run xelatex. There are reasons to compile yourself (e.g. to make a substitution) but unless you have a reason, LyX is better to use because it knows how many times you must run xelatex (if you only run it once, you might not have the table of contents, or citations). > Notice that this script uses --export xetex and xelatex. This is so you > can compile documents that use non-TeX fonts. There's also a way to do > it with LuaTeX, but I don't know it. If you want a LuaTeX PDF, just use pdf5 for the format. > This script uses mupdf to view the finished PDF. Since discovering > mupdf, I've configured LyX to use it as LyX's exclusive PDF reader. > It's lightning fast Agreed, very fast. Nice script, Steve. Thanks for sharing it with the list! Scott signature.asc Description: PGP signature
Script to repeatedly compile a document
Hi all, The following is a script to repeatedly compile a LyX document that's under construction or debugging: == #!/bin/sh mainname=ch20 flagg=a while [ "$flagg" != "q" ]; do rm $mainname.tex rm $mainname.aux rm $mainname.pdf rm $mainname.log rm $mainname.dvi lyx --export xetex $mainname.lyx xelatex $mainname.tex mupdf $mainname.pdf echo echo -n "Hit q then Enter to quit, " echo -n "any else to continue=\>" read flagg done == Obviously, the preceding was made to repeatedly compile a document called ch20.lyx, but this can be changed, or it can be changed to $1 so that you can put the document name minus extension on the shellscript command line. Notice that this script uses --export xetex and xelatex. This is so you can compile documents that use non-TeX fonts. There's also a way to do it with LuaTeX, but I don't know it. This script uses mupdf to view the finished PDF. Since discovering mupdf, I've configured LyX to use it as LyX's exclusive PDF reader. It's lightning fast, and even though it doesn't automatically update when the file it's reading changes, after doing Ctrl+Shift+R in LyX and waiting for that to complete, you can press the r key in mupdf for an instant update. Or if you really want automatic updates, write a little script to loop inotifywait and rerun mupdf every time the PDF changes. SteveT Steve Litt June 2016 featured book: Troubleshooting: Why Bother? http://www.troubleshooters.com/twb
Re: lyx-2.2.0 installation ./configure cannot find libmagic
Le 26/06/2016 13:51, Michael Berger a écrit : Thanks Jean-Marc, libmagic-devel 5.19 10.1.mga i586 is already installed (I would need x86_64 but that is not available via Control Center) Can you send your config.log file? JMarc
Re: lyx-2.2.0 installation ./configure cannot find libmagic
On 06/26/2016 01:39 PM, Jean-Marc Lasgouttes wrote: Le 26/06/2016 13:32, Michael Berger a écrit : it run till the end but then said to have found "minor problems": Cannot find libmagic. Check that the libmagic library is correctly installed. Falling back to builtin file format detection. Contradicting enough, it continues saying: Configuration of LyX was successful. When libmagic is not available, LyX does without it (it is used to recognize file formats) I have Mageia5 / KDE Try to install the package libmagic-devel. JMarc Thanks Jean-Marc, libmagic-devel 5.19 10.1.mga i586 is already installed (I would need x86_64 but that is not available via Control Center) Michael
Re: lyx-2.2.0 installation ./configure cannot find libmagic
Le 26/06/2016 13:32, Michael Berger a écrit : it run till the end but then said to have found "minor problems": Cannot find libmagic. Check that the libmagic library is correctly installed. Falling back to builtin file format detection. Contradicting enough, it continues saying: Configuration of LyX was successful. When libmagic is not available, LyX does without it (it is used to recognize file formats) I have Mageia5 / KDE Try to install the package libmagic-devel. JMarc
lyx-2.2.0 installation ./configure cannot find libmagic
Hi dear Lyx users, I downloaded lyx-2.2.0.tar.gz, extracted it and after cd to /.../lyx-2.2.0 run # ./configure it run till the end but then said to have found "minor problems": Cannot find libmagic. Check that the libmagic library is correctly installed. Falling back to builtin file format detection. Contradicting enough, it continues saying: Configuration of LyX was successful. Type 'make' to compile the program, and then 'make install' to install it. But running 'make' also ends up with errors. I found libmagic here: /usr/src/php-devel/extensions//fileinfo/libmagic with 23 files in /libmagic suffixed .c or .h Could somebody please help with this? I have Mageia5 / KDE Thanks and cheers, Michael