| Author |
Message |
connorfranciswillcocks

Joined: 27 May 2012 Posts: 74 Location: England!
|
Posted: Tue 19 Jun 2012, 16:09 Post subject:
Compiling Programs [Solved] |
|
Can someone give me some help on this,
Say i want to install any Tar.pkg or any other package made for linux, What is the Standard procedure to compile using the Terminal,
can you give me it step by step
i have tried http://puppylinux.org/wikka/compiling But i cant get to grips with it, i need it simpler lol
All i need is how to compile even if it does not have all the dependencies as i can get them later, i just want to find it installed in the usual bin folder.
Thanks In Advance Connor
Last edited by connorfranciswillcocks on Thu 21 Jun 2012, 13:45; edited 1 time in total
|
|
Back to top
|
|
 |
runtt21

Joined: 07 Jun 2008 Posts: 1580 Location: BigD Texas
|
Posted: Tue 19 Jun 2012, 21:05 Post subject:
|
|
After you unpack the .tar.gz if it has a autogen.sh file you run this:
| Code: | | ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var |
You would also add any enable or disable variables at the end of that line.
If the tar.gz only has a configure file you would run :
| Code: | | ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var |
When that finishes you run :
When that finishes you run :
| Code: | | new2dir make install |
At the end of that you will be given the option to make a .pet out of it.
|
|
Back to top
|
|
 |
muggins
Joined: 20 Jan 2006 Posts: 6660 Location: lisbon
|
Posted: Tue 19 Jun 2012, 23:41 Post subject:
|
|
| Quote: | | All i need is how to compile even if it does not have all the dependencies as i can get them later |
It would need to be a very basic program, to compile without dependencies, as usually ./configure --prefix=/usr will fail
if dependencies are missing.
|
|
Back to top
|
|
 |
connorfranciswillcocks

Joined: 27 May 2012 Posts: 74 Location: England!
|
Posted: Wed 20 Jun 2012, 06:58 Post subject:
Thanks |
|
Thanks muggins and runtt21.
Here is something else i wrote what worked for me. Hope you can understand
tar zxvf package.tar.gz ///// tgz or tar.gz
tar jxvf package.bz2 /////for bz2
Locate Directory Of Package
“Cd ~/my-documents”
then run “tar zxvf package.tar.gz this will extract
Now move into directory of extracted file
CD~/my-documents/extractedpackagename
Then enter ./configure
Then enter make
If you want to do both enter;
./configure && make
|
|
Back to top
|
|
 |
darkcity

Joined: 23 May 2010 Posts: 2215 Location: near here
|
Posted: Wed 20 Jun 2012, 08:07 Post subject:
|
|
some packages just contain binaries that don't need compiling, others contain source code.
----
some compiling info which may be useful-
if you want to make a Puppy native package its called a PET
after make
you can use
new2dir instead of make install
clicking on pet installs it.
more info here
http://puppylinux.org/wikka/new2dir
_________________ Wiki Audacity 2.0.1
|
|
Back to top
|
|
 |
connorfranciswillcocks

Joined: 27 May 2012 Posts: 74 Location: England!
|
Posted: Wed 20 Jun 2012, 11:48 Post subject:
|
|
| darkcity wrote: | some packages just contain binaries that don't need compiling, others contain source code.
----
some compiling info which may be useful-
if you want to make a Puppy native package its called a PET
after make
you can use
new2dir instead of make install
clicking on pet installs it.
more info here
http://puppylinux.org/wikka/new2dir |
Thanks DarkCity!
|
|
Back to top
|
|
 |
runtt21

Joined: 07 Jun 2008 Posts: 1580 Location: BigD Texas
|
Posted: Wed 20 Jun 2012, 17:57 Post subject:
Re: Compiling Programs |
|
| connorfranciswillcocks wrote: | | i just want to find it installed in the usual bin folder. |
You have to use " --prefix=/usr " to get it right for puppy.
|
|
Back to top
|
|
 |
|