Bug 191090 - kile does not start xpdf or acroread to view pdfs
Summary: kile does not start xpdf or acroread to view pdfs
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.0.81
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
: 191803 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-30 00:28 UTC by Stefan Seide
Modified: 2009-05-08 11:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Seide 2009-04-30 00:28:58 UTC
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
Comment 1 Thomas Braun 2009-05-03 19:17:04 UTC
Does it make a difference on your box if you start kile from a konsole or from the desktop (i.e. from ALT + F2)?
Comment 2 Stefan Seide 2009-05-03 20:48:53 UTC
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.
Comment 3 Thomas Braun 2009-05-05 17:50:48 UTC
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
Comment 4 Stefan Seide 2009-05-05 20:09:50 UTC
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
Comment 5 Thomas Braun 2009-05-05 20:13:42 UTC
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.
Comment 6 Stefan Seide 2009-05-05 20:40:25 UTC
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.
Comment 7 Michel Ludwig 2009-05-06 22:57:13 UTC
Please ensure that you only put 'sh' for the 'command' option in the tool configuration, and '/home/stefan/kiletest.sh' in 'options'.
Comment 8 Thomas Braun 2009-05-06 23:02:45 UTC
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?
Comment 9 Thomas Braun 2009-05-06 23:05:12 UTC
*** Bug 191803 has been marked as a duplicate of this bug. ***
Comment 10 Stefan Seide 2009-05-07 22:42:01 UTC
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...