【问题标题】:curl: not found on Solariscurl:在 Solaris 上找不到
【发布时间】:2016-03-30 13:30:53
【问题描述】:

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

curl: not found

如何在 Solaris 上安装 curl?

【问题讨论】:

  • 顺便说一句,这应该在 unix.stackexchange.com 或 superuser.com 中问过。可能已经搬出去了。
  • 在提出此类问题时指定哪个版本的 Solaris 非常有用,因为 Solaris 11 及更高版本中的软件包系统与 Solaris 10 及更早版本中的软件包系统非常不同,因此答案将大不相同每个人。

标签: curl solaris sunos


【解决方案1】:

对于 Solaris 10,如果您有 Sun Explorer,那么您就有 curl:

在 SPARC 上:

    /opt/SUNWexplo/bin/solaris/curl.sparc

在 x86 上:

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

【讨论】:

    【解决方案2】:

    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 来自 Solaris Companion CD(如果有),或来自 OpenCSW,或构建您自己的 from source

    $ pkginfo -l SFWcurl
       PKGINST:  SFWcurl
          NAME:  curl - tool for transfering data specified with URL syntax
      CATEGORY:  system
          ARCH:  sparc
       VERSION:  7.19.5,REV=2009.08.23.06.12
       BASEDIR:  /opt
        VENDOR:  curl and libcurl
          DESC:  curl - tool for transfering data specified with URL syntax
        PSTAMP:  freeware20090825021108
      INSTDATE:  Mar 15 2010 11:05
       HOTLINE:  Please contact the owners of this software
        STATUS:  completely installed
         FILES:       75 installed pathnames
                       8 directories
                       3 executables
                    2537 blocks used (approx)
    

    或者,根据您的用例,您可以简单地使用具有类似功能的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
    

    【讨论】:

      猜你喜欢
      • 2018-06-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-07
      • 1970-01-01
      相关资源
      最近更新 更多