LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Building a Slackware Package when trackinstall -i="make install" fails (https://www.linuxquestions.org/questions/slackware-14/building-a-slackware-package-when-trackinstall-i%3D-make-install-fails-775187/)

Alexvader 12-12-2009 12:58 PM

Building a Slackware Package when trackinstall -i="make install" fails
 
Hi Forum

There are some libs that I want to build, as *.t?z, I know how to build them from source as binaries, things like PETSc, Spooles, ARPACK...

But I do not want to "make install" them, what I want after the build is to be able to create them as packages, that can easily be managed...

But trying to run trackinstall -i="make install" in the source tree of PETSc, for instance, yelds an error, even after having configured --prefix=/usr/local ... yet the thing was actually built...

I've searched in man trackinstall but the closest thing I've found so far is the "install line", still this fails...

Any hints on how should i proceed...?


BRGDS

Alex

gnashley 12-12-2009 01:24 PM

What command is supposed to be used to install the libs? I mean what does the README say?

Alexvader 12-12-2009 01:39 PM

Hi Gnashley,

I do not have my slackware laptop w/ me right now, but I will check and post back tomorrow the detailed steps,

but in the manwhile, the sequence that I follow is from their install instructions... :

Refering to PETSc specifically... :

http://www.mcs.anl.gov/petsc/petsc-a...tallation.html

Quote:

Detailed instructions:
(MS Windows only) Install cygwin package (including make, python modules) and use cygwin shell.
Sugest downloading and installing PETSc as a regular/non-root user, perhaps in /home/username/soft
Download latest PETSc release tarball: petsc-3.0.0-p0.tar.gz

cd /home/username/soft
gunzip -c petsc-3.0.0-p0.tar.gz | tar -xof -
cd petsc-3.0.0-p0
sh/bash shell: PETSC_DIR=$PWD; export PETSC_DIR
csh/tcsh shell: setenv PETSC_DIR $PWD
./config/configure.py (use --help for options or the example usages below)
make all

make test

More specifically :


Quote:

Installing PETSc in /usr/local or /opt where sudo or root previledges are required:
If one wants to install PETSc [with sources] in a common system location like /usr/local or /opt, then sugest creating a dir for PETSc in the required location with user previledges, and then do the PETSc install [as a regular/non-root user]. i.e


sudo mkdir /opt/petsc
sudo chown user:group /opt/petsc
cd /opt/petsc
tar -xzf petsc-3.0.0-p0.tar.gz
cd petsc-3.0.0-p0
./config/configure.py
make

One can also use the gnu prefix-install mode.


[untar PETSc in a non-root regular location - say /home/username]
setenv PETSC_DIR $PWD

./config/configure.py --prefix=/opt/petsc/petsc-3.0.0-p0 [other configure options]

make
sudo make install PETSC_DIR=$PWD

After the install is done, one has to switch to using PETSC_DIR=/opt/petsc/petsc-3.0.0-p0. If you've installed PETSc with the --prefix option then you DO NOT use a PETSC_ARCH variable. You should install different configurations using different --prefix names.

So Far, I have set the environment variables, configured with prefix /usr/local, and tried trackinstall with no success...

Like I told you, the detailed error message i do not know by head, by I can post it back here tomorrow... :-)

BRGDS

Alex


All times are GMT -5. The time now is 11:19 PM.