Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 May 2013, 21:01
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Compiling Programs [Solved]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
connorfranciswillcocks


Joined: 27 May 2012
Posts: 74
Location: England!

PostPosted: 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 Very Happy

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 Wink

Last edited by connorfranciswillcocks on Thu 21 Jun 2012, 13:45; edited 1 time in total
Back to top
View user's profile Send private message 
runtt21


Joined: 07 Jun 2008
Posts: 1580
Location: BigD Texas

PostPosted: 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 :

Code:
make


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
View user's profile Send private message Visit poster's website 
muggins

Joined: 20 Jan 2006
Posts: 6660
Location: lisbon

PostPosted: 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
View user's profile Send private message 
connorfranciswillcocks


Joined: 27 May 2012
Posts: 74
Location: England!

PostPosted: 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
View user's profile Send private message 
darkcity


Joined: 23 May 2010
Posts: 2215
Location: near here

PostPosted: 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
View user's profile Send private message Visit poster's website 
connorfranciswillcocks


Joined: 27 May 2012
Posts: 74
Location: England!

PostPosted: 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! Very Happy
Back to top
View user's profile Send private message 
runtt21


Joined: 07 Jun 2008
Posts: 1580
Location: BigD Texas

PostPosted: 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
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0549s ][ Queries: 12 (0.0103s) ][ GZIP on ]