Cannot install fastexp1510-15.10.01.06-1.i386.rpm to /opt, setup_wrapper reports failure from rpm

Tools & Utilities
Visitor

Cannot install fastexp1510-15.10.01.06-1.i386.rpm to /opt, setup_wrapper reports failure from rpm

I am having a very difficult time installing fastexp1510-15.10.01.06-1.i386.rpm.

I am working with the utilities included with TeradataToolsAndUtilitiesBase__linux_indep.15.10.26.00.tar.gz.

I first installed these, in this order: tdicu, TeraGSS, cliv2, tdodbc, piom, bteq.

For all of those, I used the associated setup_wrapper.sh script. Installation went smoothly, except for TeraGSS where it didn't like the "07" in the name. As a workaround, I used:

 

ln -s teragss1510-15.10.07.05-1.noarch.rpm teragss1510-15.10.01.05-1.noarch.rpm

then setup_wrapper.sh for TeraGSS was happy.

 

Now, when I am trying to install fastexp, I am getting a bizarre error that I cannot solve.

 

$ sudo ./setup_wrapper.sh
[sudo] password for mylinuxusername:

------------------------------------
Install mode chosen is - Interactive
------------------------------------

 < "/opt", the prefix of already installed TTU 15.10 packages, will be used as the installation directory. >

Installing fastexp1510-15.10.01.06-1.i386.rpm in "/opt"...
Preparing...                          ################################# [100%]

       This version of the Teradata piom1510-15.10.01.03-1.noarch package is
       already installed in the '/opt' directory.
       In order to install the fastexp1510-15.10.01.06-1 package,
       you must specify the same prefix (/opt) directory.
       Do not specify --prefix or specify '/opt' as the value
       for the --prefix RPM command option and re-execute the install.

error: %pre(fastexp1510-15.10.01.06-1.i386) scriptlet failed, exit status 1
error: fastexp1510-15.10.01.06-1.i386: install failed

 Error! The installation of fastexp1510-15.10.01.06-1.i386.rpm failed.

I have also tried specifying /opt as the directory explicitly, but saw no difference:

 

 

$ sudo ./setup_wrapper.sh -r fastexp1510-15.10.01.06-1.i386.rpm -i /opt

------------------------------------
Install mode chosen is - Interactive
------------------------------------

 < "/opt", the prefix of already installed TTU 15.10 packages, will be used as the installation directory. >

Installing fastexp1510-15.10.01.06-1.i386.rpm in "/opt"...
Preparing...                          ################################# [100%]

       This version of the Teradata piom1510-15.10.01.03-1.noarch package is
       already installed in the '/opt' directory.
       In order to install the fastexp1510-15.10.01.06-1 package,
       you must specify the same prefix (/opt) directory.
       Do not specify --prefix or specify '/opt' as the value
       for the --prefix RPM command option and re-execute the install.

error: %pre(fastexp1510-15.10.01.06-1.i386) scriptlet failed, exit status 1
error: fastexp1510-15.10.01.06-1.i386: install failed

 Error! The installation of fastexp1510-15.10.01.06-1.i386.rpm failed.

 

If I bypass the wrapper script and try a "direct" install with any of:

  • sudo rpm -ivh fastexp1510-15.10.01.06-1.i386.rpm --prefix=/opt
  • sudo rpm -ivh fastexp1510-15.10.01.06-1.i386.rpm
  • sudo yum --nogpgcheck localinstall fastexp1510-15.10.01.06-1.i386.rpm

these installations "work", but the fexp bizarrely goes into /usr/bin:

$ sudo rpm -ivh fastexp1510-15.10.01.06-1.i386.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:fastexp1510-15.10.01.06-1        ################################# [100%]
19:41:41 [myusername@myhostname fastexp]$ which fexp
/usr/bin/fexp

"rpm -qlp" shows this:

 

$ rpm -qlp fastexp1510-15.10.01.06-1.i386.rpm 
/opt
/opt/teradata
/opt/teradata/client
/opt/teradata/client/15.10
/opt/teradata/client/15.10/bin
/opt/teradata/client/15.10/bin/fexp
/opt/teradata/client/15.10/bin/tdclientdir
/opt/teradata/client/15.10/include
/opt/teradata/client/15.10/include/expnfyxt.h
/opt/teradata/client/15.10/sample
/opt/teradata/client/15.10/sample/expnfyxt.c
/opt/teradata/client/15.10/sample/mkexpext.linux
/opt/teradata/client/15.10/sample/quickstart
/opt/teradata/client/15.10/sample/quickstart/fexp_sample.fe
/opt/teradata/client/15.10/sample/validate
/opt/teradata/client/15.10/sample/validate/fexpreadme.txt
/opt/teradata/client/15.10/sample/validate/fexpvalidate.ksh

How can I install fastexp into /opt, where everything else has gone (/opt/teradata/client/15.10/) ?