Featured Book

LaTeX Beginners Guide

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 4 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

pdfcrop: The Perl script could not be found.

Add tags Information and discussion about MikTeX distribution for Windows; installation, administration; field reports

pdfcrop: The Perl script could not be found.

Postby Ede_123 on Thu Aug 18th, 2011

Hi,

I have a problem concerning pdfcrop.

When I call pdfcrop from commandline I get the following error:
Code: Select all  •  Open in writeLaTeX
D:\>pdfcrop
pdfcrop: The Perl script could not be found.
pdfcrop: Data: scripts/pdfcrop/perl/pdfcrop.pl


I'm using Windows7 x64, Miktex 2.9 (x86) and I installed Active Perl (x86).
The following files are present in my miktex installation:
C:\Program Files (x86)\TeX\MiKTeX 2.9\miktex\bin\pdfcrop.exe
C:\Program Files (x86)\TeX\MiKTeX 2.9\scripts\pdfcrop\pdfcrop.pl

I also tried copying pdfcrop.pl to
C:\Program Files (x86)\TeX\MiKTeX 2.9\scripts\pdfcrop\perl\pdfcrop.pl
but it didn't change anything.

My PATH varialbe contains:
C:\Program Files (x86)\Perl\site\bin
C:\Program Files (x86)\Perl\bin
C:\Program Files (x86)\TeX\MiKTeX 2.9\miktex\bin

I allready tried calling the perl script directly. It works but produces another error (probably due to some path error)

Does anyone have an idea what's wrong with my setup of pdfcrop?
Last edited by Ede_123 on Fri Aug 19th, 2011, edited 1 time in total.
Ede_123
 
Posts: 5
Joined: Tue Jan 25th, 2011

Re: pdfcrop: The Perl script could not be found.

Postby Ede_123 on Thu Aug 18th, 2011

Update:
Ok, I successfully broke pdfcrop on my laptop were it used to work before.
What I did was an update of MikTeX today. Yesterday everything worked ok...

Is there somebody who could assist me in locating the origin of the problem? Since I'm not too familiar with the internal structure of LaTeX it's quite complicated for me to track down what package update broke pdfcrop for me.

I assume first step would be to find what packages got updated and what version they were before. Is there a logfile somewehere, where the updates are written to?



Update 2:
Okay, I did it! pdfcrop is working again.

Problem seems, that pdfcrop.exe actually searches for pdfcrop.pl in
MiKTeX 2.9/scripts/pdfcrop/perl/
but after the pdfcrop update to v1.32 from 2011/08/10 ist is just written to
MiKTeX 2.9/scripts/pdfcrop

My approach to copy pdfcrop.pl into the subfolder /perl didn't work in the first place because I forgot to refresh file name database. (MiKTeX Options -> Refresh FNDB)

I'm going to refer this thread to Heiko Oberdiek, pdfcrops author. I assume he knows what to do, to resolve this problem in future versions.



Update 3:
Since it's probably an issue with MiKTeX and not with pdfcrop itself I created a bugreport here:
https://sourceforge.net/tracker/?func=d ... tid=110783
Ede_123
 
Posts: 5
Joined: Tue Jan 25th, 2011

Re: pdfcrop: The Perl script could not be found.

Postby Stefan_K on Thu Aug 18th, 2011

Thanks for the updates!

Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6378
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: pdfcrop: The Perl script could not be found.

Postby Ede_123 on Fri Aug 19th, 2011

The bug has been fixed. The fix will be made available with the
next update cycle. You can watch the MiKTeX project page
for further information on the next update.

(From http://sourceforge.net/tracker/?func=de ... tid=110783)
Ede_123
 
Posts: 5
Joined: Tue Jan 25th, 2011


Return to MikTeX

Who is online

Users browsing this forum: No registered users and 4 guests