Compiling Problems

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Azati Prime
Level 2
Level 2
Posts: 57
Joined: Mon Jun 08, 2009 3:40 pm

Compiling Problems

Post by Azati Prime »

I'm trying to compile this program and I'm running into a problem.
http://pdfcrack.sourceforge.net/

I downloaded the source and extracted it to /opt/ and ran sudo make. This worked fine but when I type pdfcrack in terminal I get an error message that
The program 'pdfcrack' is currently not installed. You can install it by typing.....
The program runs just fine if I open the source folder and type ./pdfcrack. How can I get the program to run from anywhere?

User avatar
RedWagon
Level 5
Level 5
Posts: 632
Joined: Tue May 26, 2009 6:41 pm

Re: Compiling Problems

Post by RedWagon »

I think you forgot

Code: Select all

sudo make install
When compiling from source you usually follow these commands:

Code: Select all

./configure
make
sudo make install

Azati Prime
Level 2
Level 2
Posts: 57
Joined: Mon Jun 08, 2009 3:40 pm

Re: Compiling Problems

Post by Azati Prime »

There doesn't appear to be a configure or make install script in this program.

User avatar
RedWagon
Level 5
Level 5
Posts: 632
Joined: Tue May 26, 2009 6:41 pm

Re: Compiling Problems

Post by RedWagon »

Wait a sec... pdfcrack is in the repos. You don't have to compile from source, just run

Code: Select all

sudo apt-get install pdfcrack

User avatar
RedWagon
Level 5
Level 5
Posts: 632
Joined: Tue May 26, 2009 6:41 pm

Re: Compiling Problems

Post by RedWagon »

I downloaded pdfcrack and messed around with it. You're right, it doesn't need a ./config and doesn't have make install setup. Since it's such a small program I guess they just left it up to us to install manually. Using a package manager is always the preferred way to install a program, but if you want to use the source anyways, (you're only one command away from being done) run this:

Code: Select all

sudo ln -s /opt/pdfcrack-0.11/pdfcrack /usr/local/bin/
This will make a symbolic link from the pdfcrack in /opt/pdfcrack-0.11/ to /usr/local/bin/ which will allow it to be run anywhere.

Azati Prime
Level 2
Level 2
Posts: 57
Joined: Mon Jun 08, 2009 3:40 pm

Re: Compiling Problems

Post by Azati Prime »

So it is. Thanks! At least I got practice for compiling future programs.

Post Reply

Return to “Newbie Questions”