LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-12-2009, 12:58 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
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
 
Old 12-12-2009, 01:24 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
What command is supposed to be used to install the libs? I mean what does the README say?
 
1 members found this post helpful.
Old 12-12-2009, 01:39 PM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
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

Last edited by Alexvader; 12-12-2009 at 01:41 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
glibc 2.9 "make check" fails on rt/tst-cputimer with "timer sig[12] invoked to soon" shachter Linux - Software 2 02-14-2009 01:24 PM
fontconfig - "make install" fails after ststroud Linux - General 1 01-28-2007 04:03 AM
OpenTTD 0.4.8, "make install" fails majro Slackware 4 12-24-2006 05:55 AM
Ndiswrapper install failure - LBA-Linux "make" command fails petteril Linux - Wireless Networking 1 04-23-2005 08:22 AM
When "make install clean" ports fails everytime! Devboy *BSD 9 08-11-2004 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration