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

Thread: Compiling Tarballs on Desktop and Home folder, is this bad?

  1. #1
    Join Date
    Jul 2011
    Beans
    141
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Compiling Tarballs on Desktop and Home folder, is this bad?

    Hi, sometimes I just download a tarball and extract the folder to my desktop or my home folder, and I then compile the program for there. Is that bad?

    Does it really matter where I extract the folder? Or where I compile the program?

    Can I delete the extracted folder after installing?

  2. #2
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,792

    Re: Compiling Tarballs on Desktop and Home folder, is this bad?

    Howdy,

    If the program has a proper Makefile, then nothing happens to your system until you run 'make install', so whichever way you experiment is fine.

    However, if you are using your computer for something important besides software R&D work and you are worried about breaking it, then you should install Virtualbox and create a virtual machine for software development work. That way, your base system remains safe. This is what most serious developers do.

  3. #3
    Join Date
    May 2006
    Location
    Boston
    Beans
    1,918
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Compiling Tarballs on Desktop and Home folder, is this bad?

    Quote Originally Posted by Wiking View Post
    Hi, sometimes I just download a tarball and extract the folder to my desktop or my home folder, and I then compile the program for there. Is that bad?

    Does it really matter where I extract the folder? Or where I compile the program?

    Can I delete the extracted folder after installing?
    pretty soon you'll have software in the desktop, you documents' folder, your home dir, downloads dir and so on.... A mess to find what you need

    usually users should compile they software in /usr/loacal/<specific subfolder> (if it's a lib in /lib, if it's a code into src etc..)
    when you compile a software is always a good ide to save the tar archive and the source code(the config/make file , in order to make uninstall easier in the future)

    I usually choose /usr/local/share
    that way other users can see it and use it without touching the system tools.
    Last edited by fdrake; February 16th, 2013 at 07:14 AM.

    blog
    Donations BTC : 12FwoB7uAM5FnweykpR1AEEDVFaTLTYFkS
    DOUBLEPLUSGOOD!!

  4. #4
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Compiling Tarballs on Desktop and Home folder, is this bad?

    Quote Originally Posted by Wiking View Post
    Hi, sometimes I just download a tarball and extract the folder to my desktop or my home folder, and I then compile the program for there. Is that bad?
    No, assuming you trust the source code.

    Quote Originally Posted by Wiking View Post
    Does it really matter where I extract the folder? Or where I compile the program?
    I create folders below my ~/Downloads/ for this purpose.

    Quote Originally Posted by Wiking View Post
    Can I delete the extracted folder after installing?
    I usually keep these folders in case I want to uninstall the software later on with sudo make uninstall

  5. #5
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Compiling Tarballs on Desktop and Home folder, is this bad?

    Perhaps you could emulate a customary Slackware practice and perform the actual compilation in /tmp. Not normally done in Ubuntu but it might be a sound practice to at least experiment with?
    Last edited by andrew.46; February 19th, 2013 at 10:54 AM. Reason: Missed a vital word.....
    You think that's air you're breathing now?

  6. #6
    Join Date
    Jan 2007
    Beans
    6,537
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Compiling Tarballs on Desktop and Home folder, is this bad?

    Quote Originally Posted by Wiking View Post
    Hi, sometimes I just download a tarball and extract the folder to my desktop or my home folder, and I then compile the program for there. Is that bad?
    If you're doing it a lot, probably yes.

    Linux distros like Ubuntu have a sophisticated package manager built in. The package manager constantly juggles a complex web of dependencies between all the software on your machine and keeps everything running stably. Downloading tarballs and compiling them circumvents that package management system, and can cause the dependency system to break.

    That's not going to cause any catastrophic damage, things will just not work properly. But if you want a stable system it's always best to use the package manager to install software. If you need a package that's not in the repos, try to find a .deb or a PPA for it rather than a tarball.

  7. #7
    Join Date
    Nov 2005
    Location
    Lincolnshire, UK
    Beans
    1,461
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Compiling Tarballs on Desktop and Home folder, is this bad?

    Quote Originally Posted by Paqman View Post
    ...If you need a package that's not in the repos, try to find a .deb or a PPA for it rather than a tarball.
    +1
    For a "typical" home user the compilation of tarballs is both unnecessary and undesirable. It is far better to use a package from the repos as this ensures that all the necessary dependencies are available or will be installed as required. Personally, I haven't compiled software for many years as I prefer to avoid hassle and keep my systems stable!

  8. #8
    Join Date
    Feb 2013
    Beans
    0

    Re: Compiling Tarballs on Desktop and Home folder, is this bad?

    I always compile mine in ~/builds/app_name a habit I picked up using other distros. Keeps everything nice and organized.

  9. #9
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Compiling Tarballs on Desktop and Home folder, is this bad?

    I have to mildly disagree with those who advocate against compiling at all. It can be done safely and can be integrated easily enough with the Ubuntu package manager. Times to consider compiling would include:

    1. A newer version of your favourite software is not included with your current flavour of Ubuntu.
    2. ....and you are not keen on PPAs...
    3. You want to add in an option that has not been compiled into the repository version
    4. You want to experiment a little


    My own MPlayer guide is an example of all of these features rolled into one and I give it some advertising here:

    https://help.ubuntu.com/community/Compiling%20MPlayer
    You think that's air you're breathing now?

  10. #10
    Join Date
    Nov 2005
    Location
    Lincolnshire, UK
    Beans
    1,461
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Compiling Tarballs on Desktop and Home folder, is this bad?

    Quote Originally Posted by andrew.46 View Post
    I have to mildly disagree with those who advocate against compiling at all. It can be done safely and can be integrated easily enough with the Ubuntu package manager...
    I'm sorry but I fail to see how compiled software integrates with the package manager. Packages automatically receive security updates whereas compiled software remains outside this system and can only be updated manually. Keeping track of manually installed software is a nightmare!

    I agree that if a user really needs the "latest and greatest" then compiling may be appropriate as PPAs can be from dubious sources. However, if a stable system is required then I advise always keeping well behind the "latest and greatest" software to avoid problems.

    Experimentation is fine but, I suggest, not on a critical system. Either use a Virtual Machine or, ideally, a totally different "play" system.

Page 1 of 2 12 LastLast

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
  •