I can't understand the 3rd line in these instructions, found here
- Install dependency Ghostscript. On MacOSX:
brew install ghostscript
- Create a symbolic link if you want to run it everywhere in bash
ln -s pdf_creator.py pdfc
- Add in PATH environment variable On MacOSX:
echo export=/absolute/path/of/the/folder/script/:$PATH >> ~/.bash_profile
What path are they talking about? The path where the ghostcript is? I don't know where that would be. When I ran echo export=/absolute/path/of/the/folder/script/:$PATH in terminal, nothing happened to the bash profile.
Placed the folder
pdfc_masterwhich contains the file
ln -s /users/bobsmith/codes/pdfc_master/pdf_compressor.py pdfc
echo export=/users/bobsmith/codes/pdfc_master/pdf_compressor.py/:$PATH >> ~/.bash_profile
I now have the following syntax on my bash_profile
That looks wrong to me.
So I then ran in terminal:
pdfc /users/bobsmith/downloads/montale_eng3.pdf 0 /users/bobsmith/downloads/montale_eng2.pdf
And I got the error pdfc not found. I would think that
pdfc would have to be somewhere in my bash_profile but it is not.