*How to install software from source code:*

*Get your package ready*

    * 1. Download the desired package.
      2. Open the package.
      a. Open a terminal and CD to the location of the package.
      b. Use “*tar -zxvf <package .tgz>*” If package name ends in *.tgz*.
      c. Use “*tar -xjvf <package.tar.bz2>*” for a .bz2 package.
      3. Read the README and any other instructions.
      4. Download and install any dependencies (and dependants of the
      dependencies).
      5. Run “*ldconfig*” to update any libraries you have just installed.
    *


NOTE: tar.gz and .tgz are the same thing.

*
Installing the package* (or dependencies).
Open a terminal and CD to the package directory.
For most packages run the following commands:

*./configure (options) * #configure the package
*make * #compile files
*make install * #copy files to the system
OR

*./configure && make && make install*
(is this the same thing?)

*./configure <options>*
This creates a makefile for your package detailing how the package is to 
be installed on your system.
Options may be specified in package documentation (or elsewhere).
READ THE DOCUMENTATION.
In Vector 6.0 *--prefix=/usr* should usually be one of the options. This 
specifies the package is to be installed in the */usr* directory.
If you are updating a package already installed on the system install it 
to the same directory as the older version.
*./configure --help* may list the available options.

EXAMPLE: *./configure --prefix=/usr --enable-gui*

“*make*” compiles the required files into binary files

“*make install*” copies the binaries into your system.

You can then clean up from the compiling process with “*make clean*” (in 
the package directory). But you will no longer be able to uninstall the 
package with “*make uninstall*”!!!
Ditto if you delete your package directory!


*A better way to install from source*:

*./configure (options)* # configure the package
*make* # compile files
*checkinstall –L* #create a .tlz package.

OR

*./configure –prefix=/usr && make && checkinstall –L* ( would this work)

“*checkinstall*” creates and installs a package for your system leaving 
it in the
package directory.
The checkinstall version provided is optimized for vector .
Do not use another version.
Use the –L switch for a .tlz package and -G for a .tgz package.
The package can be uninstalled like any other with *removepkg*
without damaging your system.
It can be reinstalled at any time with *installpkg*.




*Installing your package with SCONS*
Not all packages use the ./configure && make && make install method of 
installation. Some use the scons system to build and install packages.
*
Get your package source and get it ready* (see above)
READ THE DOCUMENTATION.
In a terminal CD to the package directory:
*scons configure* # Configure the package. You may need options.
*scons* # Build the scons package.
*scons install* # Install the scons package

OR
*checkinstall scons install*


*
Other install methods:*
Pkgtool tukaani-pkgtools is a GUI wrapper for the make tools described 
above.
Just follow the onscreen prompts.
install scripts scons itself uses a python script for its self installation.
This is run from a terminal in the package directory.
READ THE DOCUMENTATION.
Midnight
Commander a file manager that runs in a terminal. (this could use it’s 
own how to)

Yosvany Reyes wrote:
> que tengo que hacer para instalar un tar.gz o tar.bz2 en slackware 12.1
>
> gracias de antemano
>
>   

-- 
 
Raphael Burquet
Mailto: [EMAIL PROTECTED]
OS: Vector Linux Std Gold 5.9
2.6 kernel
SeaMonkey 1.1.7
Ucmb Threelab
Phone: 0123 48 1779 Node
Other: 0123 48 2656


-- 
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
For all your IT requirements visit: http://www.transtec.co.uk

_______________________________________________
Cancelar suscripción
https://listas.softwarelibre.cu/mailman/listinfo/linux-l
Buscar en el archivo
http://listas.softwarelibre.cu/buscar/linux-l

Responder a