Ok, now... how do I really use the make command?


Forum: Apps
Topic: Ok, now... how do I really use the make command?
started by: Genecks

Posted by Genecks on Dec. 23 2007,08:07
Alright, I don't tend to impose my radical views unless I see them as truth, but the stickied thread in this board is stupid. Ok, yeah, maybe it tells me what I need to install, but it doesn't really say how.

Besides that, I had already read that I needed various packages like that by reading someone's blog. Still, though, neither described how to exactly install the libraries and other packages to install things from source.

I keep reading something about mydsl and dpkg. If I understand correctly, mydsl is like puppy's dotpups, right? So how exactly is that going to help me compile something? Wouldn't those be precompiled applications? I'm not looking for precompiled applications unless they are the things which I need to compile something. If that's the case, could someone fill me in as to which ones and where to get them?

And about dpkg... ok, wouldn't that only be useful for .deb packages? And even then, it probably wouldn't be as good as gdebi. But, isn't that something I would use after I have the build-essential type stuff already installed?

I understand the concept of dependency hell, but I'm pretty sure the application I'm using is pretty basic.

So, how do I install something from source?
And please, details.

Posted by curaga on Dec. 23 2007,08:24
Yes, mydsl is similar to puppy's dotpups. Get gcc1-with-libs (compiler, make, headers) and gnu-utils (full utils such as find). Then you can compile stuff.

I don't recommend going the .deb way.. Too messy and too easy to corrupt.

For your app; after checking all it's dependencies, check which are already in DSL, and which you need to compile. Then decide how will you use your app:
- if you're running a HD install, you can install it permanently to, say /usr
- you can make it and it's dependencies an extension
- or you can make a remaster of DSL, having your app and it's dependencies 'in the core', for live cd or frugal install

Posted by humpty on Dec. 23 2007,10:33
>configure
then
>make


(hell, if only life was that simple)

Posted by Genecks on Dec. 23 2007,11:37
Quote (humpty @ Dec. 23 2007,05:33)
>configure
then
>make


(hell, if only life was that simple)

Oh, I see. So this is like Gentoo right?
So, my thread is pointless?
I don't need the web address of all the assigned packages because DSL automagically downloads them for me.

I don't have to go looking for those mydsl things, if I understand what you're saying. Because since DSL is like Gentoo, then it will just download the files needed for compilation once I hit configure.

Got'cha.

I sometimes feel I'm the only intelligent person on the Internet these days that actually remembers how cnet.com grew into what it is now. People lack the ability to be organized with their projects. Come on. I refuse to believe the developers and some of the best contribs were born in the 90s. Sad.

For anyone who's wondering, here:

< http://distro.ibiblio.org/pub....m >

That's what I'd like to see.

You tell me what I need; you point to where it's at.
People don't point anymore.

Posted by curaga on Dec. 23 2007,11:55
Well, you don't really need the web address, since these can just be browsed using the MyDSL gui.
Then you click on it, it will be downloaded & loaded.

Posted by Genecks on Dec. 23 2007,11:58
Quote (curaga @ Dec. 23 2007,06:55)
Well, you don't really need the web address, since these can just be browsed using the MyDSL gui.
Then you click on it, it will be downloaded & loaded.

Thank you. Beautiful. That's the kind of information I'm looking for.
Posted by ^thehatsrule^ on Dec. 31 2007,02:16
Or see some docs, such as the wiki...

The site where you download a source package will probably tell you how to compile it.

If not, here are some generic tips:
- you can extract the package (i.e. via tar) and then look for text files in CAPS, such as README and INSTALL
- you could optionally run `./configure --help` before actually configuring it
- afterwards, typically `make` will build it and `make install-strip` will install and strip it (or just `make install` if that's not supported)

Posted by Juanito on Dec. 31 2007,10:31
Quote
and `make install-strip` will install and strip it
- now there's something I didn't know (been doin' it manually up to now) - thanks

Posted by curaga on Dec. 31 2007,11:37
I have seen no packages so far that have "install-strip" make rule, and I've seen a lot.. Don't get your hopes too up for automation :P
Posted by ^thehatsrule^ on Dec. 31 2007,18:24
Well, if you made your own set of scripts or whatever, you could always do something like `make install-strip || make install` instead
Posted by humpty on Jan. 01 2008,18:42
Quote (Genecks @ Dec. 23 2007,14:37)
For anyone who's wondering, here:

< http://distro.ibiblio.org/pub....m >

That's what I'd like to see.

it was not clear wether you wanted to compile sources or if you just wanted to load a pre-compiled package i.e extensions.

there is a link on the downloads page that brings you to
< http://distro.ibiblio.org/pub/linux/distributions/damnsmall/mydsl/ >
which explains how to load extensions.
I forgot if extensions still auto-boot-load if they are placed in '/' but they certainly do if placed in a directory called 'mydsl' from your boot partition.

if on the other hand you want to compile sources (extensions are not sources) which you got elsewhere. then all i can say is goodluck.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.