LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-22-2009, 07:20 AM   #1
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
RPM BUILD Warning


I am trying to build an RPM using rpmbuild and it gives me a warning warning: Could not canonicalize hostname: <hostname>

Can anybody help me why am i getting so.

PMP
 
Old 04-22-2009, 10:00 AM   #2
Quickfix.in
LQ Newbie
 
Registered: Apr 2009
Location: Chennai, India
Distribution: Redhat
Posts: 2

Rep: Reputation: 0
Hi,

Please let me know the syntax which you tried and confirm your hostname is lookable and having proper entry in /etc/hosts file.


Thanks

Last edited by Quickfix.in; 04-22-2009 at 10:02 AM.
 
Old 06-23-2010, 10:51 PM   #3
Stumpy842
LQ Newbie
 
Registered: May 2008
Location: Ohio US
Distribution: Unity Linux
Posts: 3

Rep: Reputation: 0
Lightbulb

Quote:
Originally Posted by PMP View Post
I am trying to build an RPM using rpmbuild and it gives me a warning warning: Could not canonicalize hostname: <hostname>

Can anybody help me why am i getting so.

PMP
Here is what is working for me:

in /etc/hosts
127.0.0.1 unity-linux.org localhost.localdomain

in /etc/nsswitch.conf
hosts: files nis dns

Reference from rpm maintainer Jeff Johnson here:
http://www.redhat.com/archives/rpm-l.../msg00247.html
 
  


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
Build WARNING: No module cciss found for kernel TonyC Linux - Kernel 2 10-17-2008 10:01 AM
How can I generate / build and RPM from *.src.rpm file sreekumartg Red Hat 3 02-23-2007 06:23 PM
warning:user mock build doesn't exist-using root ??? IndianMaverick Fedora 1 09-30-2006 08:13 AM
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 10:15 AM
RPM warning linux_pioneer Linux - Software 0 08-06-2003 03:58 AM


All times are GMT -5. The time now is 10:43 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