LinuxQuestions.org
Register a domain and help support LQ
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 10-24-2007, 02:25 PM   #1
fexter
LQ Newbie
 
Registered: Oct 2007
Posts: 14

Rep: Reputation: 0
Problems with make install?!?!


Here is the result of my make install:

fexter@fexter-desktop:~/clamav-0.92rc2$ make install
Making install in libclamav
make[1]: Entering directory `/home/fexter/clamav-0.92rc2/libclamav'
make[2]: Entering directory `/home/fexter/clamav-0.92rc2/libclamav'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
/bin/bash ../libtool --mode=install /usr/bin/install -c 'libclamav.la' '/usr/local/lib/libclamav.la'
/usr/bin/install -c .libs/libclamav.so.3.0.1 /usr/local/lib/libclamav.so.3.0.1
/usr/bin/install: cannot create regular file `/usr/local/lib/libclamav.so.3.0.1': Permission denied
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/fexter/clamav-0.92rc2/libclamav'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/fexter/clamav-0.92rc2/libclamav'
make: *** [install-recursive] Error 1

Can someone explain to me how come it doesn't work?

Greatly appreciated!

Fexter
 
Old 10-24-2007, 02:29 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
fexter@fexter-desktop:~/clamav-0.92rc2$ make install
At least here's a problem: make install (usually) copies files to directories you don't necessarily have write permissions, as a normal user, so for that reason 'make install' should be ran either as root, or with root privileges (trough sudo, for example). The dollar sign ($) above suggests that you're running 'make install' not as root, but as a regular user, and that doesn't work

EDIT: also "fexter@fexter-desktop" sounds like you're issuing the command as user 'fexter', whose rights aren't as high as 'root's.

Configuration step (./configure) and compiling step (make) can and should be done as a regular user, since they don't usually deal with things that require root privileges. But do the last step with root privileges.

Last edited by b0uncer; 10-24-2007 at 02:31 PM.
 
Old 10-24-2007, 02:37 PM   #3
fexter
LQ Newbie
 
Registered: Oct 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Ok great that worked just fine!! But now I do a sudo freshclam but it tells me to go edit the freshclam.conf file. I have no clue what I need to do. Is it just removing the # signs?
 
Old 10-24-2007, 02:42 PM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Well, the file freshclam.conf (in /etc/ probably, but I'm not sure) is the configuration for the program. By default, if I'm right, there is a variable set that prevents the normal startup of the program and causes it to tell you to edit the file -- this is because the program maker wants that you don't just blindly run it, but read the configuration file trough and modify the options to suit your needs.

So, what you do, is open the file as root (using sudo) with your favourite text editor. Go trough the options; don't remove every comment mark (#) because that either makes the file unusable (wrong lines uncommented, like real comments), or causes things to be un/set that you really don't want to. Instead read the lines trough, and decide which options you want to be set on or off (or to some value), and which ones you want to have at their default values. You don't need to edit lines you think are ok for you, but you can and should edit those values you think are important.

When you've reviewed the configuration options (most of them may well be ok for you), then find the line that says something like "remove this line to allow the program run", and comment it - add # in front of the line (it could also be made so that you need to uncomment something, but you'll see when you read it).

That step is taken in some other programs as well, to make sure the user who installs the program does read the configuration trough and doesn't just jump into using it.

Last edited by b0uncer; 10-24-2007 at 02:43 PM.
 
Old 10-24-2007, 02:47 PM   #5
fexter
LQ Newbie
 
Registered: Oct 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks a whole bunch b0uncer! Thats what I thought but I wasn't too sure!

Dude you rock!!
 
Old 10-24-2007, 02:48 PM   #6
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
No problem - if any further questions happen to come to your mind, feel free to ask You can also IM me if you like, and if I happen to be online then.
 
Old 10-24-2007, 02:52 PM   #7
fexter
LQ Newbie
 
Registered: Oct 2007
Posts: 14

Original Poster
Rep: Reputation: 0
IM? within this forum??? Im so new its nuts!!!

Last edited by fexter; 10-24-2007 at 02:54 PM.
 
Old 10-24-2007, 02:56 PM   #8
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
Originally Posted by fexter
IM? within this forum??? Im so new its nuts!!!
No, not in this forum (that would be awesome, depending on the users themselves), but if you happen to have one of those IM apps installed (Pidgin, Kopete etc..for ICQ for example), you are able to throw me a message.
 
Old 10-24-2007, 02:58 PM   #9
fexter
LQ Newbie
 
Registered: Oct 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Oh ok thats what I thought!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
madwifi make install problems dstill Linux - Wireless Networking 2 02-09-2006 06:25 PM
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 05:37 PM
make and make install problems jabird Red Hat 1 10-11-2004 10:05 PM
how to make a xp install without problems? jrfly Linux - Newbie 2 09-19-2004 10:38 PM
install problems - make files mhristov Linux - Newbie 1 09-03-2004 01:31 PM


All times are GMT -5. The time now is 12:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration