Version: 2.0.81 (using 4.2.2 (KDE 4.2.2), Debian packages) Compiler: cc OS: Linux (x86_64) release 2.6.26-1-amd64 Using xpdf or acroread does not work to view generated pdfs. Acroread and XPDF ar configured under Kile configuration -> Tools -> Build Kile tries to start /usr/bin/xpdf and /usr/bin/acroread but these two are bash scripts which cannot be executed because the programms called within these scripts are not found e.g. script /usr/bin/xpdf contains: #!/bin/bash LANG=C LC_ALL=C export LANG LC_ALL exec -a xpdf xpdf.bin "$@" viewing pdfs with kile shows the error: /usr/bin/xpdf: line 5: exec: xpdf.bin: not found similar for acroread - /usr/bin does not seems to be within the path variable
Does it make a difference on your box if you start kile from a konsole or from the desktop (i.e. from ALT + F2)?
no - it makes no difference. Kile started from konsole, kde-menu: ***** ***** ViewAcrobat Ausgabe: ***** cd "/home/stefan/Briefe" ***** acroread 'blah.pdf' ***** /usr/lib/Adobe/Reader9/bin/acroread-deu: 70: grep: not found /usr/lib/Adobe/Reader9/bin/acroread-deu: 152: cut: not found /usr/lib/Adobe/Reader9/bin/acroread-deu: 163: dirname: not found /usr/lib/Adobe/Reader9/bin/acroread-deu: 164: dirname: not found /usr/lib/Adobe/Reader9/bin/acroread-deu: 476: dirname: not found /usr/lib/Adobe/Reader9/bin/acroread-deu: 476: dirname: not found FEHLER: Aktuelles Installationsverzeichnis kann nicht gefunden werden.
I can't reproduce your error here, I'll try later on my debian unstable. To verify the path thing you might try the following: - Create a file echoPath.sh in your home directory, i.e. /home/myaccount/echoPath.sh - Fill it with "echo $PATH" - Create a new tool in kile and set command to sh and options to /home/myaccount/echoPath.sh. Call the tool and paste the output here. Thanks for help, Thomas
calling the script from the konsole gives the following output: stefan°corellia°~$ ./kiletest.sh /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games calling it from kile: "build" -> "other" -> "Kiletest" gives: ***** ***** KileTest Ausgabe: ***** cd "/home/stefan/Briefe" ***** /home/stefan/kiletest.sh ***** $PATH
Have you set "sh" as Command of the kiletTest tool? My output here in kile is: ***** ***** 123 output: ***** cd "/home/kdedev/kile-projects" ***** sh /home/kdedev/echoPATH.sh ***** /home/kdedev/cmake-2.6.2-Linux-i386/bin:/home/kdedev/kde/bin:/home/kdedev/qt-copy/bin:/usr/local/bin:/home/kdedev/kde/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games And locally: kdedev@thomas:~$ sh echoPATH.sh /home/kdedev/cmake-2.6.2-Linux-i386/bin:/home/kdedev/kde/bin:/home/kdedev/qt-copy/bin:/usr/local/bin:/home/kdedev/kde/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games And this is equal.
changed command to use "sh" gives: ***** ***** KileTest Ausgabe: ***** cd "/home/stefan/Briefe" ***** sh /home/stefan/kiletest.sh ***** here is nothing shown at all - PATH is empty. Executing within konsole: stefan°corellia°~$ sh kiletest.sh /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games Problem started after upgrade from kde 3.5.x to 4.2.2 (kile upgraded together with the other kde packages). I did not change the kile options after the upgrade.
Please ensure that you only put 'sh' for the 'command' option in the tool configuration, and '/home/stefan/kiletest.sh' in 'options'.
With the debian package of kile I had the same bug. But with recent svn trunk it works. So maybe debian should just update the kile package. @Stefan: Can you compile kile yourself and confirm?
*** Bug 191803 has been marked as a duplicate of this bug. ***
installed a new deb package today (2.1.0~svn963524-1) that fixed this problem for me. p.s. thanks for this great piece of software...