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 08-05-2011, 07:34 AM   #1
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Rep: Reputation: Disabled
CentOS Linux 6.0


Hi i just uppgraded to Centos 6. Linux 2.6.32-71.29.1.el6.i686 on i686
now im getting some troubble whit this file:
wget https://sourceforge.net/projects/cou...r.bz2/download
i create a downloads directory and download the source file and--
mkdir $HOME/downloads
cd $HOME/downloads
But when i try to build courier-authlib whit this comand:
#sudo rpmbuild -ta courier-authlib-0.63.0.tar.bz2
I get this:

[falko@server1 downloads]$ sudo rpmbuild -ta courier-authlib-0.63.0.tar.bz2
>>> /etc/sudoers: syntax error near line 90 <<<
sudo: parse error in /etc/sudoers near line 90
sudo: no valid sudoers sources found, quitting
You have new mail in /var/spool/mail/root

as you can see the file i try to install is in my directory:
[falko@server1 downloads]$ ll
total 10520
-rw-rw-r--. 1 falko falko 2817119 Dec 30 2009 courier-authlib-0.63.0.tar.bz2
-rw-rw-r--. 1 falko falko 2817119 Dec 30 2009 courier-authlib-0.63.0.tar.bz2.1
-rw-rw-r--. 1 falko falko 3049553 May 23 12:58 courier-imap-4.9.3.tar.bz2
-rw-rw-r--. 1 falko falko 2082167 May 20 13:25 maildrop-2.5.4.tar.bz2

what can be the reason??

Jan Ivar

Last edited by Jan-Ivar; 08-05-2011 at 07:38 AM.
 
Old 08-05-2011, 09:22 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Geez ... for a start you don't want to be building packages as root, it's extremely easy to trash your system. Secondly, the problem is pretty straight forward, you're trying to run sudo and the error message says there's a syntax error in /etc/sudoers - so type 'visudo' and fix the error.
 
Old 08-05-2011, 11:29 AM   #3
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Hi
hmm didnt you se, i created a new user "falko" im not doing this as root user..
[falko@server1 downloads]$ visudo
visudo: /etc/sudoers: Permission denied
visudo: /etc/sudoers: Permission denied

So you se hmm cant get permission to that

sorry i just typed "exit" and then run visudo as root

Last edited by Jan-Ivar; 08-05-2011 at 12:05 PM.
 
Old 08-05-2011, 12:14 PM   #4
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Hmm
cant find that error, loks like it is sudoers sources, but there is a valid source. maybe i have got the permission vrong here.
 
Old 08-05-2011, 02:40 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
I have to ask
what is it you are trying to do
from the first post it looks like you want to install some VERY VERY old and unsupported version of "courier-0.63.0 ( from 2009)"
The current is "courier-0.66.3.tar.bz2 "

and it looks like you are fallowing WHAT
bits and pieces of different "how to's" for different OS's

so
1)
Code:
wget https://sourceforge.net/projects/courier/files/authlib/0.63.0/courier-authlib-0.63.0.tar.bz2/download
WHY this very old tarbal ??????
the current is 66.3
2)
Quote:
mkdir $HOME/downloads
? WHY
cent already has a DEFAULT folder called "Downloads"
there was no need to make a second folder but with a lower case "d"
3)
Quote:
#sudo rpmbuild -ta courier-authlib-0.63.0.tar.bz2
?
sudo is not used by default on a red hat based distro
sudo is not set up by default on a red hat based distro
use " su " or "su -" on a red hat system

4)
using rpmbuild on a untared tarbal
and on an uncompiled untared tarbal
and one that is 3 years OUT OF DATE


so what is it you want to do
i have NO IDEA what

if you NEED to build the source
DL the current 66.3
untar it
( double click on it and let fileroller extract it ( just like on MS windows-- no different)
then READ the files README and INSTALL
make 100% sure you DID install gcc and autotools
with the groupinstall
Code:
su -
yum groupinstall "development Tools" "Development Libraries"
then run the configure script

Last edited by John VV; 08-05-2011 at 02:46 PM.
 
Old 08-05-2011, 05:09 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
RPM packages should be built as unprivileged user.

Setting up the rpm account in "/home/Jan-Ivar/", post #13 here :

http://www.linuxquestions.org/questi...1-a-766486/#13
 
  


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
Booting Centos 5.4 Issue: "CentOS CD Not found in any of the media drives. Please i g.navink Red Hat 1 04-07-2010 04:12 PM
Unifying permissions between two servers (CentOS + Webmin/CentOs +Cpanel) and rsync d60eba Linux - Server 1 01-01-2010 12:55 PM
LXer: PV-Grub on CentOS 5.2 PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit) LXer Syndicated Linux News 0 10-05-2008 10:12 PM
printer setup from Centos 5 to Vista home prem. on a headless centos pc ncsuapex Red Hat 6 03-10-2008 11:40 AM
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 03:41 AM

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

All times are GMT -5. The time now is 10:32 AM.

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