![]() |
| | #1 |
| Registered User Join Date: Nov 2006
Posts: 9
| How to make tarball (.tgz) for app? I am new to Linux programming and been googling for "how to" for making tarball packages for my apps. I haven't found what I am looking for and that is why my question ends up in this forum. Can someone point me at the right direction as I can not figure out how to make the tarball package in the right way. What I am looking for is when someone downloads my app they should be able to run: ./configure, make, make install on my tarball. The way I am compiling now is with gcc and language is C. Many thanks for all help! Marcux |
| Marcux is offline | |
| | #2 |
| Registered User Join Date: Jul 2006
Posts: 158
| run: Code: man tar Code: tar -czf program-1.3.tgz program-1.3
__________________ Gentoo Linux - 2.6.22.1 GCC version 4.2.0 |
| divineleft is offline | |
| | #3 |
| Registered User Join Date: Nov 2006
Posts: 9
| Yes, ok, that is the way of making tarballs, but I realy want to get the whole chain and understanding of the "standard" linux way of packing programs. As I have understod it so far, I put my source files in my .tgz file and then I unpack it and after that the Code: ./configure Code: make Code: make install Right? But am I right that the configure script has to be written by me? Or is a "standard" script produced with Code: tar Any good "How to" pages? Many thanks! |
| Marcux is offline | |
| | #4 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,689
| Various Linux based IDE's (such as k-develop) can generate the whole project, including a template configure script (IIRC). This you just edit like anything else to match your specific needs, but I imagine at the start the standard one will suffice. tar just creates one file out of many (like ZIP), it doesn't produce any more functionality. |
| Salem is offline | |
| | #5 | |
| Senior software engineer Join Date: Mar 2007 Location: Portland, OR
Posts: 5,768
| Quote:
Sometimes I download code where the configure script is 10 times longer than the source code of the program it is configuring. That's just STUPID. When the time comes that you actually need a configure script, you'll know it. Don't make one just because everybody else does. | |
| brewbuck is offline | |
| | #6 |
| Registered User Join Date: Nov 2006
Posts: 9
| Hi brewbuck! Please breaf me in! So I do not need the configure script? It is generated by autoconfig, how does it work, what does autoconfig generate? I am about to finish a terminal program with no dependencies of other apps. The way I have understood it I need a confígure script when I have dependencies of other apps, like for instance if I need a SQL-server I specify it in a configure script, am I right? How do I write my makefile file? What is needed in it? Please point me in the right direction! Many, many thanks for all the help!! |
| Marcux is offline | |
| | #7 | |
| Registered User Join Date: Jul 2006
Posts: 158
| Quote:
__________________ Gentoo Linux - 2.6.22.1 GCC version 4.2.0 | |
| divineleft is offline | |
| | #8 | |
| Registered User Join Date: Jul 2006
Posts: 158
| Quote:
as for makefiles, they are pretty much standard gnu stuff. you can look into them here. all they do is automate the compiling process, including linking, removing old object files, installing files, etc.. You technically don't need either makefiles or autoconfigurations, but there's nothing bad about `make` that i can think of and it makes your life as a developer a hell of a lot easier. autoconf on the other hand... well, only use it if you have to.
__________________ Gentoo Linux - 2.6.22.1 GCC version 4.2.0 | |
| divineleft is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Makefile Problem: None rule to make target | chris24300 | Linux Programming | 25 | 06-17-2009 09:45 AM |
| Establishing 'make clean' with GNU make | Jesdisciple | C Programming | 9 | 04-11-2009 09:10 AM |
| How to make a Packet sniffer/filter? | shown | C++ Programming | 2 | 02-22-2009 09:51 PM |
| HELP!wanting to make full screen game windowed | rented | Game Programming | 3 | 06-11-2004 04:19 AM |
| make all rule | duffy | C Programming | 9 | 09-11-2003 01:05 PM |