Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using the glossaries package to typeset some glossaries, on a MikTeX+TexnicCenter (Windows) setup.

There are administrative restrictions on the machine which means that I cannot install Perl, which is required in order to run the makeglossaries script.

I have downloaded the portable version of Strawberry Perl. But, I am not able to specify the bin directory of portable Perl and so makeglossaries script is not able to find the Perl interpreter.

Is there any way I can add the location of the Perl to makeglossaries?

Thanks.

share|improve this question
2  
I think this question is of topic. Perl+installation+path may be asked here: stackoverflow.com/questions/tagged/perl –  Marco Daniel Mar 10 '13 at 10:10
    
@MarcoDaniel Thanks. I think this is specific to TexnicCenter, since this requires adding the path when TexnicCenter is calling all the required scripts. However, please feel free to close this question, as I have figured out a way to do this. –  fg nu Mar 10 '13 at 10:28
    
The aim isn't the closing ;-). I think you will find more perl experts there. –  Marco Daniel Mar 10 '13 at 10:29

1 Answer 1

up vote 2 down vote accepted

Here is a solution that I have been able to figure out. I make an external batch file (callmakeglossaries.bat) that adds the path to the Perl executable, and then calls makeglossaries. I add this batch file as a postprocessor in the defined output profile, with the argument %tm.

REM batch file to run "makeglossaries" after adding path to portable Perl 
REM add the perl location to the path
path = %PATH%;F:\programming\perl\portableStrawberryPerl\perl\bin
"C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\makeglossaries.exe" %1

Then I call that output profile from within TexnicCenter a few times. I hope this is of help to someone else too.

share|improve this answer
    
This will work. But why don't you simply add the path to your user PATH environment variable? –  Ulrike Fischer Mar 10 '13 at 12:44
    
@UlrikeFischer If you don't have admin privileges on a Windows machine, you can't change environment variables. –  fg nu Mar 10 '13 at 17:06
1  
You can change the variables of the user. –  Ulrike Fischer Mar 10 '13 at 17:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.