How to make the link pdf2txt.py-2.7 without '-2.7'?

Ryan Schmidt ryandesign at macports.org
Sat Jul 30 14:16:11 PDT 2011


On Jul 30, 2011, at 12:41, Peng Yu wrote:

> I installed the following package. But the link has the extra version
> number. Is there a way to remove it from port?

Yes, but we're not going to do that. There is also the port py26-pdfminer, and it installs the binary pdf2txt.py-2.6. They can't both install pdf2txt.py or they would conflict with one another. Just use the binary with its suffixed name. Or use it with its original name from the long framework path. If this is just about the inconvenience of typing the command in the terminal, you can set up a shell alias to make it more convenient.



> sudo port install py27-pdfminer
> 
> ~$ ll `which pdf2txt.py-2.7 `
> lrwxr-xr-x 1 root admin 74 2011-07-30 12:19:03
> /opt/local/bin/pdf2txt.py-2.7 ->
> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pdf2txt.py



More information about the macports-users mailing list