Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

What is the best way to create a symbolic link in a rpm

 
   Linux (Home) -> Red Hat Installation RSS
Next:  Cant find the cd (Red Hat 9)  
Author Message
wong_powah

External


Since: Feb 19, 2008
Posts: 22



(Msg. 1) Posted: Wed Apr 30, 2008 6:31 am
Post subject: What is the best way to create a symbolic link in a rpm
Archived from groups: linux>redhat>install (more info?)

What is the best way to create a symbolic link in a rpm?

I created symbolic link in the %pre section in a .spec file but there
is an error during installation:

%pre server
%{_sbindir}/groupadd -r -g %{sshd_gid} sshd 2>/dev/null || :
%{_sbindir}/useradd -d /var/empty/sshd -s /bin/false -u %{sshd_uid} \
-g sshd -M -r sshd 2>/dev/null || :
ln -s -f /usr/lib/libcrypto.so.0 /usr/lib/libcrypto.so.2

# rpm -Uvh app_server-server-4.9.9-9.i386.rpm
error: failed dependencies:
libcrypto.so.2 is needed by app_server-server-4.9.9-9
Back to top
Login to vote
Nico Kadel-Garcia

External


Since: Nov 25, 2007
Posts: 37



(Msg. 2) Posted: Fri May 02, 2008 10:54 pm
Post subject: Re: What is the best way to create a symbolic link in a rpm [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

wong_powah.TakeThisOut@yahoo.ca wrote:
> What is the best way to create a symbolic link in a rpm?
>
> I created symbolic link in the %pre section in a .spec file but there
> is an error during installation:
>
> %pre server
> %{_sbindir}/groupadd -r -g %{sshd_gid} sshd 2>/dev/null || :
> %{_sbindir}/useradd -d /var/empty/sshd -s /bin/false -u %{sshd_uid} \
> -g sshd -M -r sshd 2>/dev/null || :
> ln -s -f /usr/lib/libcrypto.so.0 /usr/lib/libcrypto.so.2
>
> # rpm -Uvh app_server-server-4.9.9-9.i386.rpm
> error: failed dependencies:
> libcrypto.so.2 is needed by app_server-server-4.9.9-9

I think you need to do the symlink in your '%install' procedures, and provide
the link as a file in '%files' list. Also, don't use absolute links if you can
avoid it. Use something like this:


ln -s -f libcrypto.so.0 /usr/lib/libcrypto.so.2

And which OS is this? Shouldn't libcrypto.so.2 be in your openssl or
openssl-compat packages?
Back to top
Login to vote
Display posts from previous:   
Related Topics:
"rpm -e" do not remove the program and symbolic link - I created a rpm (.spec file) to install a program and create a symbolic link to it. After I do "rpm -e" to remove the package, the program and symbolic link still exist, how to fix this problem?

knoppix /printer problem - hi i have a knoppix version of linux and i can't get my hp laser 5l printer to work . any ideas thanks irv

Screen Resolution problem on FC4 (used to work OK on FC3) - Hello, I have a 1600x1200 and millions of colors capable LCD and Graphics card. However when I set the resolution from Desktop->System Settings->Display to 1600x1200, after rebooting the GUI, it does panning from a base resolution od 1280x1024 (qu...

how to implement my unused /var partition in FC4? - Hello, all when I was installing my FC4 recently, i had allocated a separate (500MB) partition for /var, but somehow missed telling the installer this, and ended up with a /var subdirectory of /(root) short of doing a reinstall (which would be very..

How install FC2 using extrnal USB CD - I have to install FC2 on several computers using a USB CD drive. All PCs are equal. Sometimes I had success but always I have problems. I can boot from the CD but afterwards linux doesn't find the CD drive. What can I do that I have more success when..
       Linux (Home) -> Red Hat Installation All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact