![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| expect and stty paths are different and resulting in error. | The Nemi | UNIX for Dummies Questions & Answers | 6 | 07-17-2008 08:50 AM |
| Exiting from script when error occurs | Sreejith_VK | Shell Programming and Scripting | 4 | 04-25-2008 12:53 AM |
| error occurs while some users login | rrlog | HP-UX | 0 | 08-12-2007 01:55 PM |
| Error when installing GCC | chrisanto_2000 | SUN Solaris | 1 | 06-21-2007 03:00 AM |
| error while installing gcc | sveera | SUN Solaris | 1 | 06-21-2005 10:05 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
stty: error occurs when installing rpm
Hello All,
when I install rpm rpm --install rpm packagename I got the following errors stty:standard input:invalid argument stty:standard input:invalid argument I dont know what i have to do exactly. I search on google for the same but not a particular standard solution is given please help me to overcome this problem Regards, Amit |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Usually this is because some user (maybe root) has some stty commands in their .profile or .bash_profile or .bashrc, usually something like stty erase ^H.
You can safely ignore those messages, however if you like to be tidy you can prevent them from coming up by changing them as follows: Code:
# only use stty if stdin is a terminal [[ -t 0 ]] && stty erase ^H |
|
#3
|
|||
|
|||
|
Quote:
I have changed cd /home/sroot .bashrc .bash_profile cd /etc profile bashrc but still got the same error Regards, Amit |
|
#4
|
|||
|
|||
|
What RPM are you installing? Maybe it executes its install scripts under another user ID.
|
|
#5
|
|||
|
|||
|
Quote:
I m installing my own build RPM . I m making rpm on my build machine. after that I install it from my installer script using root user Regards, Amit |
|
#6
|
|||
|
|||
|
What do you have in the %pre and %post sections of your spec file?
|
|
#7
|
|||
|
|||
|
Quote:
I have following in the %pre %prep echo 'Prep' $RPM_BUILD_ROOT %setup -q %{__cat} <<EOF >%{_tmppath}/find_requires #! /bin/sh exec %{__find_requires} | /bin/egrep -v 'libclntsh.so.10.1' | /bin/egrep -v 'libnnz10.so' exit 0 EOF chmod +x %{_tmppath}/find_requires %define _use_internal_dependency_generator 0 %define __find_requires %{_tmppath}/find_requires %build echo 'Build' $RPM_BUILD_ROOT [ ${RPM_BUILD_ROOT} != "/" ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT I have following in the %post %post export SW_SOFTWARE_SPEC="%{name},COMPONENT,r=%{version}" export FILESET="COMPONENT" export PRODUCT="%{name}" %{pdsdir}/shell/COMPONENT/postinstall && %{pdsdir}/shell/COMPONENT/configure Regards, Amit |
|||
| Google The UNIX and Linux Forums |