Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Back to Slack...

  1. #1

    Back to Slack...

    Well, I finally got fed up with RH9 again, thanks in part to RPM (for the third time in a year) and am installing Slack 9.1. I was wondering... as far as compiling programs from source... this is what makes the programs run faster, correct? Since they are optimized for your system? Now, when you 'make' and all that stuff, does the system automatically perform this optimizing as it compiles, or does it just do an i386 type install, and if you want the optimizations, you have to compile it a certain way? Also, let's say I have the source from program A in a directory. After the compilation, can I just delete the source directory, or does it just depend on the program?
    Asus A8V Deluxe Mobo
    AMD Athlon64 X2 4400 -939
    2GB Crucial DDR3200 Dual-Channel
    ATi AiW 9800 Pro 128DDR
    Audigy2 ZS
    Sony DRU-810 DVD+RW DL
    3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 120Gb 16Mb Cache

  2. #2
    Senior Member
    Join Date
    Nov 2001
    Posts
    304

    Re:Back to Slack...

    It depends on what flags are set by the Makefile when you run make. You can override these flags for better optimizations, BUT... it's not recommended. Optimizations CAN break functionality and introduce bugs. If the creator of the code didn't test his code with those optimization flags set, then you can't expect the code to work exactly like you think it should. Your safest bet is to just "./configure && make && make install" rather than trying to set optimizations the code hasn't been tested with.

  3. #3

    Re:Back to Slack...

    And yes, having it compiled for your system is going to have it running faster. Even without certain optimizations.
    AMD Athlon 2200+ 1.8Ghz
    1280MB PC-3200 CAS2.5 RAM
    ATI Radeon 9600 Pro 128MB AGP
    Western Digital WDC WD2500JB-00FUA0 250GB 7200 rpm ATA/133
    Seagate ST3200822A 200GB 7200 rpm ATA/133
    Western Digital WDC WD1200BB-00CAA1 120GB 7200 rpm ATA/133
    Western Digital WDC WD800BB-00CAA1 80GB 7200 rpm ATA/133
    Maxtor OneTouch 2HA43R32 1TB 7200 rpm USB 2.0
    D-Link DFE-530TX+ 10/100 NIC
    D-Link DWL-G520 Rev.A
    Debian 5.0r1 Lenny

  4. #4

    Re:Back to Slack...

    Well, when you install something via RPM, isn't it just "configure/make/make install" via a script? If that were the case, then wouldn't all of your RPM installs be 'compiled' for your system? And again, if that were the case, why on earth would there be 'i386' RPMs? I am just curious, as now that I am trying to learn the stuff instead of relying on the distro to figure it out for me, it all seems greek...
    Also, I noticed, Gaxprels, you use the '&&' in a couple of your posts... I know that '&' runs a command in the background, but the '&&'... does that mean, 'run in the background, and when that is done, run 'command x'..."?
    Asus A8V Deluxe Mobo
    AMD Athlon64 X2 4400 -939
    2GB Crucial DDR3200 Dual-Channel
    ATi AiW 9800 Pro 128DDR
    Audigy2 ZS
    Sony DRU-810 DVD+RW DL
    3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 120Gb 16Mb Cache

  5. #5
    Senior Member
    Join Date
    Nov 2001
    Posts
    304

    Re:Back to Slack...

    RPM's are usually binary (already compiled on another system) and thus have compiler options turned on to make them compatible across several architectures (meaning i386, i486, i586, and i686, not just your processor) so... no, RPM is NOT like "./configure && make && make install"

    the "&&" in the line:
    ./configure && make && make install

    means this:
    configure. if nothing went wrong with configure, then run make... otherwise quit... if nothing went wrong with make, then run make install...

    you could also do:
    ./configure; make; make install

    but... that would run make and then run make install regardless of any errors in the previous command given.

    Most people just do:
    ./configure
    make
    make install

    it's all a matter of preference

  6. #6

    Re:Back to Slack...

    I see... thanks for the clarification. I needed that
    Asus A8V Deluxe Mobo
    AMD Athlon64 X2 4400 -939
    2GB Crucial DDR3200 Dual-Channel
    ATi AiW 9800 Pro 128DDR
    Audigy2 ZS
    Sony DRU-810 DVD+RW DL
    3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 120Gb 16Mb Cache

  7. #7
    dox
    Guest

    Re:Back to Slack...

    i hate rpm!! compiling makes it sooo much easier ;D

  8. #8

    Re:Back to Slack...

    compiling is easy if you know how, and you know where the stuff goes when it is done, and what where it needs to go! I am clueless. I downloaded a bunch of articles about it, just to give me aheads up.
    Question: after configure/make/makeinstall, can you just remove the directory that the source is in? Or do you need it to run the program after it is compiled? I ask this because I am a little anal about keeping my systems organized (programs here, docs there, etc.) and I want to know if I will be able to move the source directory after compiling (or remove) or if I need to put the source where I want it THEN compile.
    Asus A8V Deluxe Mobo
    AMD Athlon64 X2 4400 -939
    2GB Crucial DDR3200 Dual-Channel
    ATi AiW 9800 Pro 128DDR
    Audigy2 ZS
    Sony DRU-810 DVD+RW DL
    3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 120Gb 16Mb Cache

  9. #9

    Re:Back to Slack...

    One more question... if you are running configure/make/makeinstall, and there are errors, does it dump alot of garbage files in the directory (that you need to get rid of before trying again)?
    Asus A8V Deluxe Mobo
    AMD Athlon64 X2 4400 -939
    2GB Crucial DDR3200 Dual-Channel
    ATi AiW 9800 Pro 128DDR
    Audigy2 ZS
    Sony DRU-810 DVD+RW DL
    3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 120Gb 16Mb Cache

  10. #10
    Senior Member
    Join Date
    Nov 2001
    Posts
    304

    Re:Back to Slack...

    For most programs, a "./configure && make && make install" will allow you to delete the source directory when you are done. I can't think of any programs where you need it after it is installed, but that doesn't mean there aren't any. The best thing to do would be to delete it, and if it breaks, just unpack the tarball, and "./configure && make" then don't worry about the "make install" since it's already installed.

Similar Threads

  1. Guess who's back.. Shady.. oh wait Lovechild' back!
    By Lovechild in forum General Chat
    Replies: 13
    Last Post: 10-25-2006, 06:30 AM
  2. Slack 10 RC1
    By CP in forum Linux - General Topics
    Replies: 19
    Last Post: 06-21-2004, 07:40 PM
  3. back to slack
    By jbstew32 in forum Linux - General Topics
    Replies: 6
    Last Post: 04-10-2003, 03:56 AM
  4. What I think about Slack....
    By paradox in forum Linux Distros
    Replies: 13
    Last Post: 02-27-2002, 03:51 AM
  5. Next Slack due when?
    By johnqpublic in forum Linux Distros
    Replies: 2
    Last Post: 10-26-2001, 11:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •