[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Nbd] Can not find the nbd.h



Hi, everyone.
     When I configure the package, I met the error of not finding the nbd.h.   But I find the nbd.h in following:
 
[root@...117... root]# ls /usr/include/linux/nbd.h
/usr/include/linux/nbd.h
 
when i type the ./configure, I met:
[root@...117... nbd-2.9.2]# pwd
/root/xjc/nbd/nbd-2.9.2
 
[root@...117... nbd-2.9.2]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether Large File Support should be enabled... yes
checking whether syslog logging is requested... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for an ANSI C-conforming const... yes
checking for unsigned short int... yes
checking size of unsigned short int... 2
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned long int... yes
checking size of unsigned long int... 4
checking for unsigned long long int... yes
checking size of unsigned long long int... 8
checking for llseek... yes
checking for alarm... yes
checking for gethostbyname... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for socket... yes
checking for strerror... yes
checking for strstr... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking whether client should be built... yes
checking where to find a working nbd.h... configure: error: Could not find an nbd.h from 2.6 or above.
 
When I type the env , I found that:
[root@...117... nbd-2.9.2]# env
HOSTNAME=gt15
PVM_RSH=/usr/bin/rsh
TERM=xterm
SHELL=/bin/bash
CATALINA_HOME=/opt/tomcat
HISTSIZE=1000
GLOBUS_LOCATION=/home/globus/gt3.9.5
SSH_CLIENT= 192.168.0.19 2321 22
QTDIR=/usr/lib/qt-3.1
PBS_HOME=/usr/spool/PBS
PBS_O_WORKDIR=/home/tong
SSH_TTY=/dev/pts/0
ANT_HOME=/usr/local/ant
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip =00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
GPT_LOCATION=/home/globus/gt3.9.5
PVM_ROOT=/usr/share/pvm3
USERNAME=root
MAIL=/var/spool/mail/root
PATH=/usr/java/jdk1.5.0_02/bin:/usr/local/ant/bin:/root/bin:/home/globus/gt3.9.5/bin:/home/globus/gt3.9.5/sbin:/usr/kerberos/sbin:/usr/kerberos/bin:/root/j2sdk1.4.2_04/bin:/bin:/root/bin:/home/globus/gt3.9.5/bin:/home/globus/gt3.9.5/sbin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/j2sdk1.4.2_04/bin:JAVA_HOME/jre/bin:/usr/local/ant/bin
INPUTRC=/etc/inputrc
PWD=/root/xjc/nbd/nbd-2.9.2
JAVA_HOME=/usr/java/jdk1.5.0_02
LANG=zh_CN.GB18030
LAMHELPFILE=/etc/lam/lam-helpfile
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
JAVA_JOME=/usr/local/j2sdk1.4.2_04
SHLVL=1
HOME=/root
XPVM_ROOT=/usr/share/pvm3/xpvm
LANGUAGE=zh_CN.GB18030:zh_CN.GB2312:zh_CN
BASH_ENV=/root/.bashrc
LOGNAME=root
CLASSPATH=/usr/java/jdk1.5.0_02/lib/tools.jar:/usr/java/jdk1.5.0_02/lib/dt.jar:/usr/local/ant/lib/ant.jar:/usr/local/ant/lib/junit.jar:/usr/local/ant/lib/*.jar
SSH_CONNECTION=192.168.0.19 2321 192.168.0.15 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
PBS_NODEFILE=/usr/spool/PBS/server_priv/nodes
_=/bin/env
OLDPWD=/root/xjc/nbd
 
 
So ,How can i fix the error.

Thanks a lot.
Reply to: