LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2005, 01:45 AM   #1
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin


Hello,

I have upgraded clamav from 0.75 to 0.80. Now I have 2 coexisting versions of clamav.
0.75 leaves in usr/bin as installed from the mandy 10.1 CE
0.80 leaves in usr/local/bin after I used the tarball of version 0.80 (see below)
I would imagine the services (seen via xdrakservices or chkconfig --list) do not know about the recent install., that is the path they used is to the old
version of clamav.

My question is how do I correct the paths in all the rc.d.init scripts Kxxclam Sxxclam?.
Surely I do not need to do this by hand for each script?

You are going to say do ./configure --pathblabla= /usr/bin
Make
Make install
so the install goes in usr/bin instead of the default usr/local/bin

Well, I want to learn how to deal with script for the services (reason 1).
Reason 2 is that ./configure --pathblabla= /usr/bin create a new problem:
Configure work ok, but then when I use checkinstall to create a rpm
of clamav 0.80 checkinstall fails because it tries to create a directory called "man" in usr/bin well this conflicts with the command man existing there.

The obvious solution maybe is not to create an rpm with checkinstall, and just force the install into /usr/bin. But I do not want to do that because then I would have no rpm.

What do you suggest to update the services?
By the way I am not too sure what happens to the daemon clamd
(is it the only service script that needs updating?)

Thanks in advance for any help on this.
Regards

PS: I am too newbee to try to create an rpm from scratch
but I can do CLI
 
Old 04-21-2005, 02:33 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
ClamAV is a major project - in the absence of more direct assistance, have your tried looking through:
http://www.clamav.net/doc/0.80/html/

In particular:
http://www.clamav.net/doc/0.80/html/node14.html

...amongst others there. It seems that there should not be a problem as long as you are consistent in your installs and correctly configure the daemon via clamd.conf. I gather the software is supposed to live in /usr/local and the config files live in /etc - by the standard intallation.

i.e. 0.75 probably shouldn't have gone into /usr/bin ... presumably if you try to make an rpm via checkid for clamav 0.75 in /usr/bin you have the same conflict. However you should not have this trouble with the 0.8 in /usr/local/bin

so if you stick the software in /usr/bin anyway - then move the files you want to rpm to another directory? Remove/rename the executable "man" (which summons the man pages) and put it back when you've made the rpm ... that sort of work around ... presumably you are trying to make a binary rpm - so you need the executables, dependancies, and instructions of where the rpm has to put them.

But I havn't found anything consistent about upgrades - however I have not access to the mailing list, which is almost garanteed to have something.

Last edited by Simon Bridge; 04-21-2005 at 03:01 AM.
 
Old 04-21-2005, 02:52 AM   #3
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Original Poster
Rep: Reputation: 53
Thanks for the suggestion.

I had a quick look in /etc/clamd.conf and at clamav.conf
to see if there was any path there. None I could tell were relevant
to my self inflicted upgrade. Maybe I need to look harder.

So I do not understand the relevance of node14 (location of configuration file)
for the services.

I have not contacted the mailist there because I think my problem
is more of a newbee style.

I will contact them if I do not get direct help from LQ users.

I forgot to state the default ./configure make make install works no problem,
that is it get compiled and so on, but not in the right directory

Regards
 
Old 04-22-2005, 01:02 AM   #4
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Original Poster
Rep: Reputation: 53
where is the path to update, in the services?

I have learned something:
drakrpm does remove and create the service entry in rc.d/init.d
when clamav-0.75-1mdk.rpm is removed/installed.

So no wonder my home made rpm with checkinstall does
not do the service entry.

I think I know understant how not have to change all Kxxclamd and Sxxclamd
at all level. I would only change it in rc.d/init.d and then
do a chkconfig --optionnameIcannotrememberbutIknowit levelnumbers servicename

Had a good look at the conf files clamav.conf and clamd.conf
No path in there relevant to my install problem.

Anyway
still looking for where/what path I need to update for
- clamd
- clamav-milter


regards

Last edited by Emmanuel_uk; 04-22-2005 at 01:04 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found cynthia_thomas Linux - Software 1 11-11-2005 02:59 PM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 10:57 AM
/usr/local/kde/bin in PATH aeshley Linux - Newbie 2 05-23-2002 04:04 AM
/usr/local/bin pilerock Linux - Newbie 2 01-19-2002 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration