how exactly do you install an application w/ tarball?

Could someone point me to steps for installing an application with a tar.bz2? https://forums.opensuse.org/images/smiliesnew/devil.png

Hi
Unpack the tarball and have a look at the README or INSTALL files for details…

Build as your user, only when your happy install as root user.

What is the application as it may already be packaged on OBS https://software.opensuse.org/search? if it is the spec file would show all the details how it’s built from a tarball.

It’s iptables 1.4.9 I currently have 1.4.21

I looked at the install readme. It said to run the autotools commands ./configure make make install After I ran ./configure —> linux-wz5h:/tmp/iptables-1.4.9 # ./configure configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu checking for a BSD-compatible install… /usr/bin/install -c checking whether build environment is sane… yes checking for a thread-safe mkdir -p… /usr/bin/mkdir -p checking for gawk… gawk checking whether make sets $(MAKE)… yes checking for gcc… no checking for cc… no checking for cl.exe… no configure: error: in /tmp/iptables-1.4.9': configure: error: no acceptable C compiler found in $PATH See config.log’ for more details. linux-wz5h:/tmp/iptables-1.4.9 # and a version check on my executable iptables still says 1.4.21

Hi
When posting output from the terminal, use code tags :wink:

So, first off DON’T run as root, just your user, only become root to install…

So everything that says no, you need to install… so it can’t fine gcc etc. Install the development tools patterns devel_C_C++ and devel_basis should get you most of the required tools.

Why dropping back to an older version?

On 2015-06-02 17:06, pmcpcm wrote:
>
> I looked at the install readme. It said to run the autotools commands
> ./configure make make install After I ran ./configure —>
> linux-wz5h:/tmp/iptables-1.4.9 # ./configure configure: loading site
> script /usr/share/site/x86_64-unknown-linux-gnu checking for a

Please use code tags. The ‘#’ button.

Obviously, you need to install the C compiler and other things. Like the
developer pattern in YaST.

But are you sure you know what you are doing? Downgrading iptables from
1.4.21 to 1.4.9? are you aware of the issues?

I guess not, or you would know what the error messages above meant
without asking us… :wink:


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

yeah I just realized I have version 1.4.“21” not 1.4.2,1 so now I need to remove the old iptables from wherever ./configure installed I can’t afford to be cluttered and messy

Hi
Nothing built or installed that would affect your system, it built in /tmp so it will get cleaned out eventually.

If you want to be sure run the command make uninstall in your working directory, you can also force the re-install of iptables via YaST or zypper -f

I typed find / | grep iptables and I found a directory for 1.4.9 in usr/src/iptables-1.4.9
aptitude or zypper remove doesn’t uninstall it.

I tried make uninstall in the same directory and it gave this error
make: *** No rule to make target ‘uninstall’. Stop.

On 2015-06-02 21:56, pmcpcm wrote:
>
> I tried make uninstall in the same directory and it gave this error
> make: *** No rule to make target ‘uninstall’. Stop.

Few projects have “uninstall”.

I tried to warn you not to go ahead…


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Hi
So you tried something else at some point? Sure it’s not /usr/src/packages? which is where an rpm build could go…

If the version is correct, just some cruft to manually remove :wink:

On 2015-06-03 00:36, malcolmlewis wrote:

> Hi
> So you tried something else at some point? Sure it’s not
> /usr/src/packages? which is where an rpm build could go…

But make install doesn’t.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Hi
As far as I can tell, the OP may have started the build in that location (was building as root user), nothing was built or installed, also note that just about every package using autotools creates a an uninstall section in the makefile that I have looked at… another good reason not to build stuff as root user.

The version the OP has installed is the correct when using the --version switch.

On 2015-06-03 01:16, malcolmlewis wrote:

> Hi
> As far as I can tell, the OP may have started the build in that location
> (was building as root user), nothing was built or installed, also note
> that just about every package using autotools creates a an uninstall
> section in the makefile that I have looked at… another good reason
> not to build stuff as root user.

Most of the packages I built did not have an uninstall section, which
was a reason that I used checkinstall to automatically created an RPM,
which allows easy removal.

But I doubt he built anything because he was getting errors.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))