[#7357] Linux tar distribution requires installation in /usr/local

Please log in

State: more information
Open
Date:
2014-04-29 09:55
Priority: more information
3
Submitted By:
Torsten Rohlfing (torstenrohlfing)
Assigned To: more information
Torsten Rohlfing (torsten_at_home)
Hardware: 
None
Product: 
CMTK-core
Operating System: 
Linux
Component: 
Config
Version: 
svn/trunk
Severity: 
major
Resolution: 
Fixed
Summary: more information
Linux tar distribution requires installation in /usr/local

Detailed description

Scripts in CMTK, when referencing each other, are configured to use CMTK_INSTALL_DIR, which is /usr/local/.

At the same time, the tar archive has paths like this:

CMTK-3.2.0svn-Linux-x86_64/usr/local/bin/cmtk_functions.sh

We should do two things:

a) the archive should have paths like this:

CMTK-3.2.0svn-Linux-x86_64/bin/cmtk_functions.sh

such that we can untar directly into a convenient location.

b) within-CMTK references should be robust to installation under different roots. It is not clear to me right now how to best do that, though. Maybe we need to require users to set something like a "CMTKDIR" environment variable, like FSL does.

Response

Message

Date: 2014-04-30 14:01
Sender: Torsten Rohlfing

This should be fixed in CMTK 3.2.0.

CMTK_BINARY_DIR and CMTK_LIBRARY_DIR (if needed) can now be set before executing one of CMTK's scripts, and the script should use that to override whatever paths were defined during build time.

It's not automatic, but it should enable running CMTK from non-standard installation directories.

Attached Files:

Name Download
No Files Currently Attached

Changes:

Field Old Value Date By
ResolutionAccepted As Bug2014-04-30 14:01torstenrohlfing
New Message2014-04-30 14:01torstenrohlfing