Sponsored Content
Top Forums UNIX for Advanced & Expert Users stty: error occurs when installing rpm Post 302236157 by amitpansuria on Monday 15th of September 2008 01:22:43 AM
Old 09-15-2008
Quote:
Originally Posted by Annihilannic
What do you have in the %pre and %post sections of your spec file?
Helo thx for replying me.

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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
VCSH(1) 																   VCSH(1)

NAME
vcsh - manage config files in $HOME via fake bare git repositories SYNOPSIS
vcsh clone url [repo] vcsh delete repo vcsh enter repo vcsh help vcsh init repo vcsh list vcsh list-tracked vcsh list-tracked-by repo vcsh rename repo newname vcsh run repo command vcsh setup repo vcsh which substring vcsh write-gitignore repo vcsh repo gitcommand vcsh repo DESCRIPTION
vcsh allows you to have several git(1) repositories, all maintaining their working trees in $HOME without clobbering each other. That, in turn, means you can have one repository per config set (zsh, vim, ssh, etc), picking and choosing which configs you want to use on which machine. vcsh is using a technique called fake bare git repositories, keeping $GIT_DIR in a different directory from $GIT_WORK_TREE which is pointed to $HOME. The use of symlinks is not needed in this setup, making for a cleaner setup. vcsh was designed with mr(1) in mind so you might want to install it alongside vcsh. That being said, you can easily use vcsh without mr if you prefer. A sample configuration for vcsh and mr can be found at https://github.com/RichiH/vcsh_mr_template and used with vcsh clone https://github.com/RichiH/vcsh_mr_template mr. Please note that you can always use a path instead of a name for repo. This is needed to support mr and other scripts properly and of no concern to an interactive user. OPTIONS
clone Clone an existing repository. delete Delete an existing repository. enter Enter repository; spawn new $SHELL. help Display help. init Initialize an empty repository. list List all local vcsh repositories. list-tracked List all files tracked by vcsh. list-tracked-by List files tracked by a repository. rename Rename a repository. run Run command with $GIT_DIR and $GIT_WORK_TREE set. Allows you to run any and all commands without any restrictions. Use with care. Please note that there is a somewhat magic feature for run. Instead of repo it accepts path, as well. Anything that has a slash in it will be assumed to be a path. vcsh run will then operate on this directory instead of the one normally generated from the reposi- tory's name. This is needed to support mr and other scripts properly and of no concern to an interactive user. setup Set up repository with recommended settings. which substring Find substring in name of any tracked file. write-gitignore Write .gitignore.d/repo via git ls-files. repo gitcommand Shortcut to run vcsh on a repo. Will prepend git to command. repo Shortcut to run vcsh enter <repo>. ENVIRONMENT
As noted earlier, vcsh will set $GIT_DIR and $GIT_WORK_TREE to the appropriate values for fake bare git repositories. HOOK SYSTEM
vcsh provides a hook system. Hook scripts must be executable and should be placed in <$XDG_CONFIG_HOME/vcsh/hooks-available>. From there, they can be soft-linked into <$XDG_CONFIG_HOME/vcsh/hooks-enabled>; vcsh will only execute hooks that are in this directory. Hooks follow a simple format. pre-run will be run before anything is run. If you want to have more than one script for a certain hook, just append any kind of string to order them. A system of pre-run, <pre-run.10>, <pre-run.20> etc is suggested; other options would be pre-run-10 or <pre-run.sh>. A dot after the hook name is optional. If you want to create hooks for a specific vcsh repository, simply prepend the repository's name, followed by a dot, i.e. <zsh.pre-run>. Otherwise, the same rules as above apply. The dot between the repository's name and the hook is mandatory, though. Available hooks are pre-enter, post-enter, pre-run, post-run, pre-setup, and post-setup. If you need more, vcsh is trivial to patch, but please let upstream know so we can ship them by default. DETAILED HOWTO AND FURTHER READING
Man pages are intended to be short and thus often useless to glean best practices from. This software comes with a file called <README.md>. It contains various approaches to setting up and using vcsh. You can view the file it as plain text or render it into various other formats via Markdown. On Debian-based systems, this file can be found in </usr/share/doc/vcsh>. SECURITY CONSIDERATIONS
vcsh allows you to execute arbitrary commands via vcsh run. For example, adding a sudo(8) rule for vcsh would be pretty stupid. Additionally, vcsh will source, i.e. execute, <$XDG_CONFIG_HOME/vcsh/config>. You can put any and all commands into this config file and they will be executed. BUGS
None are known at this time, but reports and/or patches are more than welcome. KNOWN ISSUES
As of this writing (June 2012), vcsh does not work with git submodule due to limitations within git. Depending on when you are reading this, you might want to consider upgrading. HISTORY
Like most people, the author initially made do with a single repository for all config files, all of which were soft-linked into $HOME. Martin F. Krafft aka madduck came up with the concept of fake bare git repositories. vcsh was initally written by madduck. This version is a re-implementation from scratch with a lot more features. madduck graciously agreed to let the author take over the name. AUTHOR
This manpage and vcsh itself were written by Richard "RichiH" Hartmann. COPYRIGHT
Copyright 2011-2012 Richard Hartmann richih.mailinglist@gmail.com Licensed under the GNU GPL version 2 or higher. https://github.com/RichiH/vcsh SEE ALSO
git(1), mr(1) June 2012 VCSH(1)
All times are GMT -4. The time now is 09:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy