curl:在Solaris上找不到

curl:在Solaris上找不到,curl,solaris,sunos,Curl,Solaris,Sunos,我正在尝试在Solaris上使用curl安装一些东西,但收到以下消息: curl: not found 如何在Solaris上安装curl?curl是Solaris 11标准安装的一部分: $ cat /etc/release Oracle Solaris 11.3 X86 Copyright (c) 1983, 2015, Oracle and/or its affiliates. All rights reserved.

我正在尝试在Solaris上使用curl安装一些东西,但收到以下消息:

curl: not found
如何在Solaris上安装curl?

curl是Solaris 11标准安装的一部分:

$ cat /etc/release
                             Oracle Solaris 11.3 X86
  Copyright (c) 1983, 2015, Oracle and/or its affiliates.  All rights reserved.
                            Assembled 06 October 2015
$ type curl
curl is /usr/bin/curl
$ pkg search -l -p /usr/bin/curl
PACKAGE                               PUBLISHER
pkg:/web/curl@7.40.0-0.175.3.0.0.30.0
如果您仍然使用Solaris 10,则可能会从中获得预编译的curl包,例如SFWcurl(如果有),或者从中获得,或者构建自己的

或者,根据您的用例,您可以简单地使用具有类似功能的wget:

$ cat /etc/release
                    Oracle Solaris 10 8/11 s10x_u10wos_17b X86
  Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
                            Assembled 23 August 2011
$ type wget
wget is /usr/sfw/bin/wget
$ pkgchk -lp /usr/sfw/bin/wget
Pathname: /usr/sfw/bin/wget
Type: regular file
Expected mode: 0555
Expected owner: root
Expected group: bin
Expected file size (bytes): 311832
Expected sum(1) of contents: 38400
Expected last modification: Mar 23 17:29:39 2011
Referenced by the following packages:
        SUNWwgetu
Current status: installed
curl是Solaris 11标准安装的一部分:

$ cat /etc/release
                             Oracle Solaris 11.3 X86
  Copyright (c) 1983, 2015, Oracle and/or its affiliates.  All rights reserved.
                            Assembled 06 October 2015
$ type curl
curl is /usr/bin/curl
$ pkg search -l -p /usr/bin/curl
PACKAGE                               PUBLISHER
pkg:/web/curl@7.40.0-0.175.3.0.0.30.0
如果您仍然使用Solaris 10,则可能会从中获得预编译的curl包,例如SFWcurl(如果有),或者从中获得,或者构建自己的

或者,根据您的用例,您可以简单地使用具有类似功能的wget:

$ cat /etc/release
                    Oracle Solaris 10 8/11 s10x_u10wos_17b X86
  Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
                            Assembled 23 August 2011
$ type wget
wget is /usr/sfw/bin/wget
$ pkgchk -lp /usr/sfw/bin/wget
Pathname: /usr/sfw/bin/wget
Type: regular file
Expected mode: 0555
Expected owner: root
Expected group: bin
Expected file size (bytes): 311832
Expected sum(1) of contents: 38400
Expected last modification: Mar 23 17:29:39 2011
Referenced by the following packages:
        SUNWwgetu
Current status: installed

对于Solaris 10,如果您有Sun Explorer,则您有:

关于SPARC:

    /opt/SUNWexplo/bin/solaris/curl.sparc
在x86上:

    /opt/SUNWexplo/bin/solaris/curl.i386

对于Solaris 10,如果您有Sun Explorer,则您有:

关于SPARC:

    /opt/SUNWexplo/bin/solaris/curl.sparc
在x86上:

    /opt/SUNWexplo/bin/solaris/curl.i386

顺便说一下,这应该在unix.stackexchange.com或superuser.com中询问。可能被移到了那里。指定哪一版本的Solaris在提出类似问题时非常有用,因为Solaris 11及更高版本中的软件包系统与Solaris 10及更高版本中的软件包系统非常不同,因此每个版本的答案都会大不相同。顺便说一句,这应该在unix.stackexchange.com或superuser.com中提出。可能被移到了那里。指定哪一版本的Solaris在询问此类问题时非常有用,因为Solaris 11及更高版本中的软件包系统与Solaris 10及更高版本中的软件包系统非常不同,因此每个版本的答案都会大不相同。