stty: error occurs when installing rpm


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users stty: error occurs when installing rpm
# 8  
Old 09-15-2008
%prep is not the same as %pre... maybe there is no %pre section?

It's possible that the %{pdsdir}/shell/COMPONENT/postinstall or .../configure are causing those error messages; have you checked them for stty or su username -c '...' commands?
# 9  
Old 09-15-2008
Quote:
Originally Posted by Annihilannic
%prep is not the same as %pre... maybe there is no %pre section?

It's possible that the %{pdsdir}/shell/COMPONENT/postinstall or .../configure are causing those error messages; have you checked them for stty or su username -c '...' commands?
right %pre section is not present in spec file.

and I have not check for stty command.
I dont know how to check for stty command
can u tell me how i check for stty ?

Regards,
Amit
# 10  
Old 09-15-2008
Just look in those scripts and see if it is there. Or maybe use grep if they are very long.
# 11  
Old 09-15-2008
Quote:
Originally Posted by Annihilannic
Just look in those scripts and see if it is there. Or maybe use grep if they are very long.
Hi Annihilannic,
thx for yr reply.

I do grep on all those script for stty but its not found.
if you want to see all .profile then also i can send you.

Regards,
Amit
# 12  
Old 09-15-2008
Try changing this line as follows:

Code:
sh -x %{pdsdir}/shell/COMPONENT/postinstall && sh -x %{pdsdir}/shell/COMPONENT/configure

Then try rebuilding and installing the RPM, and hopefully it will give us a clue about when the stty errors are being triggered.
# 13  
Old 09-17-2008
Quote:
Originally Posted by Annihilannic
Try changing this line as follows:

Code:
sh -x %{pdsdir}/shell/COMPONENT/postinstall && sh -x %{pdsdir}/shell/COMPONENT/configure

Then try rebuilding and installing the RPM, and hopefully it will give us a clue about when the stty errors are being triggered.
Hello Annihilannic,

Thanks for yr reply.

I done sh -x %{pdsdir}/shell/COMPONENT/postinstall && sh -x %{pdsdir}/shell/COMPONENT/configure

I found one things that I have total 10 rpm package and I got this stty error message in particular one packages.

another observation is that under configure function I m running

different shell scripts using su - admin -c commands..

when I install this particular package I got the following messages.


rpm -install DBASE-4.1.0.0.23-4.1.0.0.23-1.i386.rpm

export VDIR=/opt/avaya/pds
+ VDIR=/opt/avaya/pds
+ export VOICEDIR=/opt/avaya/pds
+ VOICEDIR=/opt/avaya/pds
+ export PATH=/usr/bin:/usr/rbin:/usr/sbin:/opt/avaya/pds/bin:/opt/avaya/pds/shell:::/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
+ PATH=/usr/bin:/usr/rbin:/usr/sbin:/opt/avaya/pds/bin:/opt/avaya/pds/shell:::/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
+ export ORACLE_HOME=/opt/dbase/OraHome1
+ ORACLE_HOME=/opt/dbase/OraHome1
+ exitval=0
++ /bin/basename /opt/avaya/pds/shell/DBASE/configure
+ FNAME=configure
+ print 'NOTE: Executing DBASE "configure"'

/bin/basename /opt/avaya/pds/shell/MTDBASE/configure
+ FNAME=configure
+ print 'NOTE: Executing MTDBASE "configure"'
/opt/avaya/pds/shell/MTDBASE/configure: line 279: print: command not found
+ case $FNAME in
+ configure
+ exitval=0
+ su - admin -c /opt/avaya/pds/etc/start_db
stty: standard input: Invalid argument
stty: standard input: Invalid argument
stdin: is not a tty
stty: standard input: Invalid argument


now tell me what should i do

Regards,
Amit
# 14  
Old 09-18-2008
Well this is obviously the part that is causing the problem:

Code:
+ su - admin -c /opt/avaya/pds/etc/start_db
stty: standard input: Invalid argument
stty: standard input: Invalid argument
stdin: is not a tty
stty: standard input: Invalid argument

So have a look at the admin user's profile scripts, that is probably where you will find the stty commands. You can safely ignore those errors if you wish, but they look messy. You could also consider removing the - from the su command if you don't really need to load that user's profile. It is also possible, but unlikely, that the stty commands are in the start_db script.

Note also this error:

Code:
+ print 'NOTE: Executing MTDBASE "configure"'
/opt/avaya/pds/shell/MTDBASE/configure: line 279: print: command not found

print is a ksh-specific command, so if your scripts are not going to run under ksh then you should use echo instead.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Issue with installing rpm in AIX 6.1

I am trying to install an rpm : libiconv-1.14-1.aix5.1.ppc.rpm which is a dependency to install GIT. While I gave the command I got the foll message: root:user-> $ rpm -i -v libiconv-1.14-1.aix5.1.ppc.rpm libiconv-1.14-1 ar: Cannot open or remove a file containing a running program.... (2 Replies)
Discussion started by: gaugeta
2 Replies

2. AIX

Problem Installing Apache from rpm

I am attempting to install an rpm of Apache from perzl.org on an AIX 6100-07-03-1207 server and it is failing. I think I have all of the dependencies installed. Can anyone help? Any help would be appreciated. It fails with the following error: # rpm -Uvh httpd-2.4.2-2.aix5.1.ppc.rpm ... (3 Replies)
Discussion started by: lbholde
3 Replies

3. Red Hat

Installing rpm in centos 6

hi, i am try to install a package in centos 6.2 x86-64 but unable to find any package in centos media iso. In RHEL we have a product folder which contain all the list of rpm but in centos i cant found that. I have use yum command but it also cant work show me the message no module named yum.... (1 Reply)
Discussion started by: zeeshan047
1 Replies

4. Red Hat

installing rpm from ISO

Hi, I would like to know is it possible to install rpm along its depedable rpm from mounted .iso image on Redhat Linux while installing rpm it is showing so many depandancy, so I would like to know with single command wheather it will take all depedable rpm from mounted iso image. (1 Reply)
Discussion started by: manoj.solaris
1 Replies

5. OS X (Apple)

Installing RPM built on CentOS on Mac OS X

I have a build process that runs on CentOS that builds RPMs for a java-based product. I'd like to be able to install these RPMs on my Mac OS X laptop for testing purposes. I don't need an RPM database to manage dependencies or previously installed packages. Consider this RPM to be a glorified... (1 Reply)
Discussion started by: jschnitter
1 Replies

6. Red Hat

Installing rpm packages

Hi guys, I am trying to install some packages for my oracle 11g r2 installation, the below error shows up when I try below: warning: glibc-devel-2.5-24.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 error: Failed dependencies: glibc-headers is needed by... (8 Replies)
Discussion started by: messi777
8 Replies

7. Shell Programming and Scripting

User installing a rpm package

Hi, I have an application to be installed and I want a user to be able to install it. But I meet the following issues: Removing MyApp error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db3 - Operation not permitted (1) error: cannot open... (1 Reply)
Discussion started by: potro
1 Replies

8. HP-UX

Urgent Help needed for Installing RPM on HP-UX

I am working on a HP-UX PARISC 64 architecture. I am trying to install RPM but without success. Has any body successfully installed RPM on the above architecture. I couldnt find a compatible depot file. I tried to compile the source code for rpm-4.0 package. All the dependencies are... (3 Replies)
Discussion started by: sjcekk
3 Replies

9. Shell Programming and Scripting

Installing database through RPM

Hi everyone I have just joined a software developing team. I am new to unix. Basically we are developing a product, the problem is when the end user will install this package we would like to install the datbase associated with our product using RPM. Can it be done? how secure it is? and... (0 Replies)
Discussion started by: atul.saxena
0 Replies

10. UNIX for Dummies Questions & Answers

Installing php-4.3.3-2.i386.rpm

Ok when i try to run the install the is what i get How can i fix this can anyone help (8 Replies)
Discussion started by: Blackrose
8 Replies
Login or Register to Ask a Question