[CentOS] How to compile APUE code on centos 6.X

2014-07-29 Thread Theodore Si
Hi all, I want to compile the source code of Advanced Programming in the Unix Environment(APUE) 3rd edition, and I encountered some difficulties. After executing make, I got this message: gcc -ansi -I../include -Wall -DLINUX -D_GNU_SOURCE barrier.c -o barrier -L../lib -lapue -pthread -lrt -lbsd

Re: [CentOS] How to compile APUE code on centos 6.X

2014-07-29 Thread Theodore Si
So all the packages of Fedora can also be used in CentOS? 于2014年7月29日 23:58:48,Jonathan Billings写到: On Tue, Jul 29, 2014 at 10:00:53PM +0800, Theodore Si wrote: Hi all, I want to compile the source code of Advanced Programming in the Unix Environment(APUE) 3rd edition, and I encountered

Re: [CentOS] How to compile APUE code on centos 6.X

2014-07-29 Thread Theodore Si
, Theodore Si wrote: Hi all, I want to compile the source code of Advanced Programming in the Unix Environment(APUE) 3rd edition, and I encountered some difficulties. After executing make, I got this message: [...] How to install libbsd to solve this problem on CentOS (this works on Ubuntu

Re: [CentOS] How to compile APUE code on centos 6.X

2014-07-29 Thread Theodore Si
Billings ??: On Tue, Jul 29, 2014 at 10:00:53PM +0800, Theodore Si wrote: Hi all, I want to compile the source code of Advanced Programming in the Unix Environment(APUE) 3rd edition, and I encountered some difficulties. After executing make, I got this message: [...] How to install libbsd

Re: [CentOS] How to compile APUE code on centos 6.X

2014-07-29 Thread Theodore Si
I build the libbsd from source code that I downloaded from here: http://libbsd.freedesktop.org/wiki/ I think I got all things needed, right? 于2014年7月30日 10:35:39,Theodore Si写到: I tried to install libbsd before, it didn't work.(I can execute man heapsort) Today, I installed epel-release-6

Re: [CentOS] How to compile APUE code on centos 6.X

2014-07-29 Thread Theodore Si
I write a .c file and #include bsd/stdlib.h and call heapsort, I get this: Apparently, heapsort can be called. 于2014年7月30日 11:46:55,Theodore Si写到: I build the libbsd from source code that I downloaded from here: http://libbsd.freedesktop.org/wiki/ I think I got all things needed, right

[CentOS] wget: unable to resolve host address “xxxxx”

2014-07-29 Thread Theodore Si
Hi all, I find that in my CentOS, which is installed in vmware, I can use yum to install software from Internet, and I can also ping websites, but I cannot download stuff using wget. I receive error msg unable to resolve host address “x”. The IP address is 192.168.80.128, and this is the

[CentOS] [CentOS 6.5]mounting hgfs shares failed

2014-07-30 Thread Theodore Si
Hi all, I instaled a CentOS 6.5 in Vmware and installed the vmware-tools. Howerver, when I start up, it gives me the message that mounting hgfs shares [failed] How do I solve this, any thoughts? ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] wget: unable to resolve host address “xxxxx”

2014-07-30 Thread Theodore Si
But how? Could you be more specific? I am using NAT to connect my virtual machine to the Internet. 于2014年7月30日 22:39:04,Devin Reade写到: On Jul 29, 2014, at 23:47, Gopu Krishnan gopukrishnan...@gmail.com wrote: try adding google dns 8.8.8.8 in resolv.conf His IP is in private address

Re: [CentOS] wget: unable to resolve host address “xxxxx”

2014-07-30 Thread Theodore Si
I tried to wget the google homepage, and It worked... So confused On Jul 31, 2014 2:02 AM, John R Pierce pie...@hogranch.com wrote: On 7/29/2014 10:11 PM, Theodore Si wrote: nameserver 192.168.80.2 is that a valid DNS server that knows how to look up the address you're trying to wget from

Re: [CentOS] How to compile APUE code on centos 6.X

2014-07-30 Thread Theodore Si
the file on CentOS 6 with the EPEL libbsd package installed. Are you sure you installed the right package? 32-bit vs. 64-bit? On July 29, 2014 11:54:01 PM EDT, Theodore Si sjyz...@gmail.com wrote: I write a .c file and #include bsd/stdlib.h and call heapsort, I get this: Apparently

Re: [CentOS] How to compile APUE code on centos 6.X

2014-07-31 Thread Theodore Si
It's so weird... It works now, either with #include bsd/stdlib.h or not. 于2014年7月31日 8:40:05,Jonathan Billings写到: On Thu, Jul 31, 2014 at 08:09:52AM +0800, Theodore Si wrote: I build it myself, not using rpm since it doesn't work. My OS is 32bit. It works for me with libbsd and libbsd-devel

Re: [CentOS] wget: unable to resolve host address “xxxxx”

2014-08-01 Thread Theodore Si
I am using CentOS 6.5, Vmware 10.0.3 It's working now. I have no idea why, since I didn't change anything. 于2014年8月1日 19:06:03,Guy Harrison写到: On Wednesday 30 July 2014 15:40:56 Theodore Si wrote: But how? Could you be more specific? I am using NAT to connect my virtual machine