amd64 的 libcurl4 是否可以與 Intel Core(TM)i5 一起使用?

amd64 的 libcurl4 是否可以與 Intel Core(TM)i5 一起使用?

我已在 64 位元桌面上安裝了 Ubuntu 22.04(使用 Intel Core(TM)i5-2400[電子郵件受保護]GHz),我需要使用網路設定網路。安裝缺少curl包,我不知道要下載什麼包。我查看了curl.se並下載了curl-8.4.0.zip。這是正確的包嗎?以及如何在 Ubuntu 上編譯它?我應該下載什麼編譯器以及需要哪些其他軟體包才能使其工作?非常感謝您提供的資訊!非常感激。

答案1

除非有非常具體的原因需要使用從原始碼自編譯最新的軟體包,否則您可以使用 Ubuntu 儲存庫中的curl 軟體包。

要安裝,請打開終端機並執行

sudo apt install curl

這將安裝帶有所有必要依賴項的curl。該軟體包位於「主」儲存庫中,因此它會根據需要直接從 Canonical 接收錯誤修復。

如果您確實想自己建立最新版本:捲曲文檔有如何建置和編譯的說明。

答案2

只是為了提前解決這個問題curl在 Ubuntu 22.04 中作為標準套件提供,庫也是如此(libcurl4)。

對於一個間接問的問題

amd64 的 libcurl4 是否可以與 Intel Core(TM)i5 一起使用?

答案是肯定的。更具體地說,amd64也稱為(又名),x86_64因此在 Linux 上您可以反之亦然。它是 64 位元架構x86風格,是當今 Intel 或 AMD 所擁有的一切,除了少數例外,沒有人會遇到 Intel Core (TM)i5。

現在根據您的評論,您無法運行正常工作的命令(這是從命令列安裝curl的方法),也許很高興看到它的樣子

$ sudo apt-get install curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  curl
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/194 kB of archives.
After this operation, 454 kB of additional disk space will be used.
Selecting previously unselected package curl.
(Reading database ... 243399 files and directories currently installed.)
Preparing to unpack .../curl_7.81.0-1ubuntu1.14_amd64.deb ...
Unpacking curl (7.81.0-1ubuntu1.14) ...
Setting up curl (7.81.0-1ubuntu1.14) ...
Processing triggers for man-db (2.10.2-1) ...

sudo取得root權限(設定係統),apt-get作為實用程式來充當套件管理器若要在系統範圍內安裝軟體包,請使用子命令install( apt-get) 和軟體包名稱 ( curl)。

之後您可以透過顯示版本來測試它的工作原理:

$ curl --version
curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.16
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd

如果該curl套件在配置中不可用apt-getapt配置位於/etc/apt),請仔細檢查您是否具有所需的條目sources.list(摘錄縮短為jammy-security我認為該curl包所在的存儲庫):

$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 22.04.3 LTS _Jammy Jellyfish_ - Release amd64 (20230807.2)]/ jammy main restricted
# ...

deb http://security.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
# ...

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

這是獲取實際套件的地方,不需要來源安裝,例如獲取單獨的來源檔案,然後建立軟體並安裝它。

相關內容