Please support VectorLinux!

Author Topic: Installing Linux software from .tar.gz files?  (Read 6465 times)

Locator

  • Vectorian
  • ****
  • Posts: 756
Installing Linux software from .tar.gz files?
« on: May 18, 2013, 03:28:51 pm »
How do I go about installing software to Vector Linux 7.0 from .tar.gz files?

bigpaws

  • Vectorian
  • ****
  • Posts: 1868
Re: Installing Linux software from .tar.gz files?
« Reply #1 on: May 18, 2013, 06:47:03 pm »
Locator you asked the same question on May 2, 2013

http://forum.vectorlinux.com/index.php?topic=17533.msg96799#msg96799

Why do you continue to do this. Ask the same question multiple times?

You are asking for ways to compile software. From the above mentioned
post this wiki explains how to compile and install the software.

http://www.avidemux.org/admWiki/doku.php

Please start reading the documents first.

Bigpaws


Locator

  • Vectorian
  • ****
  • Posts: 756
Re: Installing Linux software from .tar.gz files?
« Reply #2 on: May 19, 2013, 10:42:01 am »
I read those documents in their entirety and did what the instructions said - and as far as I can tell, the software in question STILL didn't install - and by the way ... I'm not asking how to compile the software, I'm asking how to install it to my operating system once it's compiled. I thought I made that clear when I first asked the question.

bigpaws

  • Vectorian
  • ****
  • Posts: 1868
Re: Installing Linux software from .tar.gz files?
« Reply #3 on: May 19, 2013, 11:35:00 am »
Quote
and as far as I can tell, the software in question STILL didn't install

Did you think about asking on their forum?
http://www.avidemux.org/smf/index.php

How about installpkg programname.tar.gz

Bigpaws

retired1af

  • Packager
  • Vectorian
  • ****
  • Posts: 1280
Re: Installing Linux software from .tar.gz files?
« Reply #4 on: May 19, 2013, 11:53:39 am »

How about installpkg programname.tar.gz

Bigpaws

 :o

Wouldn't that be installpkg programname.tgz or txz?
ASUS K73 Intel i3 Dual Core 2.3GHz

Locator

  • Vectorian
  • ****
  • Posts: 756
Re: Installing Linux software from .tar.gz files?
« Reply #5 on: May 19, 2013, 05:21:05 pm »
Normally yes, but I am trying to install Avidemux 2.6.4 from http://downloads.sourceforge.net/avidemux/avidemux_2.6.4.tar.gz (as far as I can tell, it doesn't come in .tgz or .txz format), and vpackager won't convert .tar.gz files to .tgz or .txz format either (I know, I have tried doing that).

roarde

  • Vectorian
  • ****
  • Posts: 584
  • move the needle
Re: Installing Linux software from .tar.gz files?
« Reply #6 on: May 19, 2013, 07:23:53 pm »
According to the subtitle of this forum, and this sticky, this is not the place to ask questions, but rather to post definitive answers to Frequently Asked Questions.

BUT
Putting aside Locator's frequency in asking this question, the question itself certainly qualifies. It's an easily misunderstood subject.

We need this FAQ. If someone has the time and ability, posting it would save us all time and grief.

thanks
Robert
VL Light RC 1.2

bigpaws

  • Vectorian
  • ****
  • Posts: 1868
Re: Installing Linux software from .tar.gz files?
« Reply #7 on: May 19, 2013, 08:43:15 pm »
http://www.avidemux.org/admWiki/doku.php

The install setup states that after dependencies are met. That an installable
package is made.

Locator has not stated that he has met the deps.

Compiling usually is to untar, then config and then make and last
make install.

This is not a simple program to compile let alone create a package.

For most programs to compile and install

config (after checking the config options)
make
make install

The above does not make a package. Therefore none of the packaging
tools will handle removing or updating the program.

If you want to learn about packaging the easiest place to start is here:

http://forum.vectorlinux.com/index.php?topic=17379

NOTE: You need a clean system (meaning no packages added) to
make proper packages. That can be done either in a chroot, VM
or a LXDE container.  Also upgrading your deps can trash your system
due to changing the deps to otehr programs.

There is already a package made according to this:

http://forum.vectorlinux.com/index.php?topic=17247

Locator made a request for avidmux on 4/13/2013 for version
2.6.1.

His request:
http://forum.vectorlinux.com/index.php?topic=17501

The date on the package that was announced for 2.6.1 was done
on December 22, 2012.

Probably why his request 4 months after the package was made was
not answered.

If there is a program you want and it is not listed in the packagers
then try the search bar in the forum. It will search the forum, the support
system and the website resource.

This should not be in the FAQS as roarde has mentioned. I hope this
clears  things up for the two matters. The package request and
how to make packages.


Bigpaws
 





M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3208
Re: Installing Linux software from .tar.gz files?
« Reply #8 on: May 20, 2013, 05:57:05 am »
Not only are you going the wrong way about this, but you also picked one of the most unlikely pieces of software a newbie would try to compile from source.

FYI:  Here is a normal outline of how packages are produced.  Starting with a clean system (environment)

1:  Install required dependencies for your program
2:  Locate and download the source code
3:  Extract the source code
4:  Configure the source.  Different build systems provide different ways of doing this, but normally implies the same.  It runs some tests, and will fail if you're missing deps or have things installed incorrectly.
5:  Compile the source code (again, done differently for different build systems, but usually done by calling 'make' in the configured source directory
6:  Install the package binaries to an alternate location that you can wrap up in a package

Having mentioned that avidemux is not your typical piece of software, steps 4 and 5 on this list do not apply to it, so you'll never get it to build.

The easiest way to go about this is to look at or just run the SlackBuild.  I'll hold your hand for a bit here and give you the link

https://bitbucket.org/VLCore/vabs/src/3d212db055af6dd640834a3bf7a233ef7e4cf3d8/var/vabs/avidemux/src/avidemux.SlackBuild?at=veclinux-7.0

That should help you enough to get you going...
But wait..... I did mention that avidemux is not your typical piece of software... so if you're building a more recent version than the one on the SlackBuild, it is very likely that you will run into problems also.  I would suggest extracting the source and run ./bootstrap.bash --help and look for your options there.

And oh yeah... stop posting for the same stuff all over the place.  Start collecting resources for your own benefit.
1:  Google
2:  This forum (use properly)
3:  The VABS git tree at http://bitbucket.org/VLCore/vabs
4:  The buildbot system used by VL http://vlcore.vectorlinux.com/buildbot

Locator

  • Vectorian
  • ****
  • Posts: 756
Re: Installing Linux software from .tar.gz files?
« Reply #9 on: May 20, 2013, 06:35:23 am »
All right, I admit that I went about this issue the wrong way, and I apologize for that, but according to the Avidemux forums, the way to create a .tgz file is to run the following command (as root) -

bash bootStrap.bash --with-cli --tgz

but when I run that command, I don't see a .tgz file anywhere (assuming, of course, that the .tgz file in question is stored in the same directory where the command originated from), So perhaps the question that I should have been asking all along was: where then would I find the .tgz file in question?

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3208
Re: Installing Linux software from .tar.gz files?
« Reply #10 on: May 20, 2013, 08:22:14 am »
All right, I admit that I went about this issue the wrong way, and I apologize for that, but according to the Avidemux forums, the way to create a .tgz file is to run the following command (as root) -

bash bootStrap.bash --with-cli --tgz

but when I run that command, I don't see a .tgz file anywhere (assuming, of course, that the .tgz file in question is stored in the same directory where the command originated from), So perhaps the question that I should have been asking all along was: where then would I find the .tgz file in question?
After that command runs, execute this to find your .tgz

Code: [Select]
find . -name '*.tgz'