gpt4 book ai didi

curl - 安装Curl时出错-以下详细步骤

转载 作者:行者123 更新时间:2023-12-02 10:48:12 25 4
gpt4 key购买 nike

以下是我尝试在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.

但是由于以下错误,制造失败了,我无法理解
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'

对错误或导致错误的原因有任何了解,将有很大的帮助

最佳答案

您正在尝试使用C++编译器来编译C。

In C++, you can not assign void * to a non- void * pointer without a proper type cast

这是不正确的:

CC=/db/pub/infra/SUNWspro/current/SUNWspro/bin/CC
CC(大写)用于Solaris Studio C++编译器。你要
CC=/db/pub/infra/SUNWspro/current/SUNWspro/bin/cc

(小写 cc)以获取C编译器。

关于curl - 安装Curl时出错-以下详细步骤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38439759/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com