Curl安装过程中出错-详细步骤如下

Curl安装过程中出错-详细步骤如下,curl,compiler-errors,installation,solaris,Curl,Compiler Errors,Installation,Solaris,下面是我试图在solaris 9机器上安装curl的步骤 我遵循的步骤: 1.take the new tar file. 2.untar it(tar -xvf curl-7.15.0.tar) 3.go to the curl location (cd /home/NYIMSDEV/Curl) 4.run the configuration commands 5.CPPFLAGS="-I/db/pub/infra/DBssl/current/include" LDFLAGS="-R/db/p

下面是我试图在solaris 9机器上安装curl的步骤

我遵循的步骤:

1.take the new tar file.
2.untar it(tar -xvf curl-7.15.0.tar)
3.go to the curl location (cd /home/NYIMSDEV/Curl)
4.run the configuration commands
5.CPPFLAGS="-I/db/pub/infra/DBssl/current/include" LDFLAGS="-R/db/pub/infra/DBssl/current/lib" CC=/db/pub/infra/SUNWspro/current/SUNWspro/bin/CC ./configure --with-ssl=/db/pub/infra/DBssl/current --prefix=/home/NYIMSDEV/Curl 
6. i faced error "ar" file not found in path.
7.added ar path in PATH.(PATH=$PATH:/usr/ccs/bin)
8.another issue faced is .it was not supporting HTTPS protocall.so find the location of openssl and added in command as added in above command (--with-ssl==/db/pub/infra/DBssl/current)
9.after configuration run the make command.
但是make失败了,出现了下面的错误,对此我没有任何意义

bash-2.03$ make
Making all in lib
make  all-am
source='base64.c' object='base64.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile /db/pub/infra/SUNWspro/current/SUNWspro/bin/CC -DHAVE_CONFIG_H   -I../include -I../lib -I../lib  -I/db/pub/infra/DBssl/current/include -I/db/pub/infra/DBssl/current/include/openssl -I/db/pub/infra/DBssl/current/include   -g -c -o base64.lo base64.c
/db/pub/infra/SUNWspro/current/SUNWspro/bin/CC -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/db/pub/infra/DBssl/current/include -I/db/pub/infra/DBssl/current/include/openssl -I/db/pub/infra/DBssl/current/include -g -c base64.c  -KPIC -DPIC -o .libs/base64.o
"base64.c", line 112: Error: Cannot assign void* to unsigned char*.
"base64.c", line 113: Warning: The variable newstr has not yet been assigned a value.
1 Error(s) and 1 Warning(s) detected.
*** Error code 1
make: Fatal error: Command failed for target `base64.lo'
Current working directory /home/NYIMSDEV/Module/curl-7.15.0/lib
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /home/NYIMSDEV/Module/curl-7.15.0/lib
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

任何错误的洞察力或引起的错误都将是一个很大的帮助

< p>你试图用C++编译器编译C.<

这是不正确的:

CC=/db/pub/infra/SUNWspro/current/SUNWspro/bin/CC

<代码> cc> /Color >(上例)是Solaris Studio C++编译器。你想要

CC=/db/pub/infra/SUNWspro/current/SUNWspro/bin/cc

(下例<代码> cc>代码>获取C编译器。

你尝试使用C++编译器编译C.</P>

这是不正确的:

CC=/db/pub/infra/SUNWspro/current/SUNWspro/bin/CC

<代码> cc> /Color >(上例)是Solaris Studio C++编译器。你想要

CC=/db/pub/infra/SUNWspro/current/SUNWspro/bin/cc
(小写
cc
)以获取C编译器