学 点 新 知--做 点 事 情分享 http://blog.sciencenet.cn/u/dabing 平时多记点,东西就多了...

博文

Mac下安装apt-get

已有 13885 次阅读 2015-11-19 20:31 |个人分类:玩转电脑|系统分类:科研笔记| 安装, Mac, apt-get

Mac安装apt-get

第一句没加sudo会有执行失败的地方

ABR:~ abREN$ /opt/local/bin/port selfupdate

ABR:~ abREN$ sudo /opt/local/bin/port selfupdate

ABR:~ abREN$ sudo /opt/local/bin/port install dpkg

ABR:~ abREN$ sudo /opt/local/bin/port install apt


另外可参考这个建议:

Try to find the executable. The symlink may have been lost

ABR:~ abREN$ locate apt-get

or

ABR:~ abREN$ find /-name apt-get

You can then restore the symlink if it's found with

ABR:~ abREN$ ln -s /path/to/apt-get /usr/bin/apt-get


                                                                2015-11-19 13:32 @Brussels, Belgium

-------------------

参考地址:

http://serverfault.com/questions/299488/bash-apt-get-command-not-found


安装花絮:

ABR:~ abREN$ /opt/local/bin/port selfupdate

--->  Updating MacPorts base sources using rsync

Error: Error synchronizing MacPorts sources: command execution failed

Please run `port -v selfupdate' for details.

Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed



ABR:~ abREN$ sudo /opt/local/bin/port selfupdate

--->  Updating MacPorts base sources using rsync

MacPorts base version 2.3.4 installed,

MacPorts base version 2.3.4 downloaded.

--->  Updating the ports tree

--->  MacPorts base is already the latest version


The ports tree has been updated. To upgrade your installed ports, you should run

 port upgrade outdated


ABR:~ abREN$ sudo /opt/local/bin/port install dpkg

--->  Computing dependencies for dpkg

--->  Dependencies to be installed: coreutils gnutar perl5 perl5.16 gdbm

--->  Fetching archive for coreutils

--->  Attempting to fetch coreutils-8.24_0.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/coreutils

--->  Attempting to fetch coreutils-8.24_0.darwin_13.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/sites/packages.macports.org/coreutils

--->  Installing coreutils @8.24_0

--->  Activating coreutils @8.24_0


The tools provided by GNU coreutils are prefixed with the character 'g' by

default to distinguish them from the BSD commands.

For example, cp becomes gcp and ls becomes gls.


If you want to use the GNU tools by default, add this directory to the front of

your PATH environment variable:

   /opt/local/libexec/gnubin/


--->  Cleaning coreutils

--->  Fetching archive for gnutar

--->  Attempting to fetch gnutar-1.28_0.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gnutar

--->  Attempting to fetch gnutar-1.28_0.darwin_13.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gnutar

--->  Installing gnutar @1.28_0

--->  Activating gnutar @1.28_0

--->  Cleaning gnutar

--->  Fetching archive for gdbm

--->  Attempting to fetch gdbm-1.11_1.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gdbm

--->  Attempting to fetch gdbm-1.11_1.darwin_13.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gdbm

--->  Installing gdbm @1.11_1

--->  Activating gdbm @1.11_1

--->  Cleaning gdbm

--->  Fetching archive for perl5.16

--->  Attempting to fetch perl5.16-5.16.3_1.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/perl5.16

--->  Attempting to fetch perl5.16-5.16.3_1.darwin_13.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/sites/packages.macports.org/perl5.16

--->  Installing perl5.16 @5.16.3_1

--->  Activating perl5.16 @5.16.3_1

--->  Cleaning perl5.16

--->  Fetching archive for perl5

--->  Attempting to fetch perl5-5.16.3_0+perl5_16.darwin_13.noarch.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/perl5

--->  Attempting to fetch perl5-5.16.3_0+perl5_16.darwin_13.noarch.tbz2.rmd160 from http://mse.uk.packages.macports.org/sites/packages.macports.org/perl5

--->  Installing perl5 @5.16.3_0+perl5_16

--->  Activating perl5 @5.16.3_0+perl5_16

--->  Cleaning perl5

--->  Fetching archive for dpkg

--->  Attempting to fetch dpkg-1.14.29_4.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/dpkg

--->  Attempting to fetch dpkg-1.14.29_4.darwin_13.x86_64.tbz2.rmd160 from http://mse.uk.packages.macports.org/sites/packages.macports.org/dpkg

--->  Installing dpkg @1.14.29_4

--->  Activating dpkg @1.14.29_4

--->  Cleaning dpkg

--->  Updating database of binaries

--->  Scanning binaries for linking errors              

--->  Found 1 broken file(s), matching files to ports    

--->  Found 1 broken port(s), determining rebuild order

--->  Rebuilding in order

    dpkg @1.14.29

--->  Computing dependencies for dpkg

--->  Cleaning dpkg

--->  Scanning binaries for linking errors

--->  Found 1 broken file(s), matching files to ports

--->  Found 1 broken port(s), determining rebuild order

--->  Rebuilding in order

    dpkg @1.14.29

--->  Computing dependencies for dpkg

--->  Fetching distfiles for dpkg

--->  Attempting to fetch dpkg_1.14.29.tar.gz from http://ftp.uk.debian.org/debian/pool/main/d/dpkg/

--->  Attempting to fetch dpkg_1.14.29.tar.gz from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/dpkg

--->  Verifying checksums for dpkg                                              

--->  Extracting dpkg

--->  Applying patches to dpkg

--->  Configuring dpkg

--->  Building dpkg

--->  Staging dpkg into destroot

--->  Deactivating dpkg @1.14.29_4

--->  Cleaning dpkg

--->  Uninstalling dpkg @1.14.29_4

--->  Cleaning dpkg

--->  Computing dependencies for dpkg

--->  Installing dpkg @1.14.29_4

--->  Activating dpkg @1.14.29_4

--->  Cleaning dpkg

--->  Updating database of binaries

--->  Scanning binaries for linking errors

--->  No broken files found.


ABR:~ abREN$ sudo /opt/local/bin/port install apt

--->  Computing dependencies for apt

--->  Dependencies to be installed: llvm-gcc42

--->  Fetching archive for llvm-gcc42

--->  Attempting to fetch llvm-gcc42-2336.11_3.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/llvm-gcc42

--->  Attempting to fetch llvm-gcc42-2336.11_3.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/llvm-gcc42

--->  Attempting to fetch llvm-gcc42-2336.11_3.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/llvm-gcc42

--->  Fetching distfiles for llvm-gcc42

--->  Attempting to fetch llvmgcc42-2336.11.tar.gz from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/llvm-gcc42

--->  Verifying checksums for llvm-gcc42                                        

--->  Extracting llvm-gcc42

--->  Applying patches to llvm-gcc42

--->  Configuring llvm-gcc42

--->  Building llvm-gcc42

--->  Staging llvm-gcc42 into destroot

--->  Installing llvm-gcc42 @2336.11_3

--->  Activating llvm-gcc42 @2336.11_3

--->  Cleaning llvm-gcc42

--->  Fetching archive for apt

--->  Attempting to fetch apt-0.5.27_8.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/apt

--->  Attempting to fetch apt-0.5.27_8.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/apt

--->  Attempting to fetch apt-0.5.27_8.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/apt

--->  Fetching distfiles for apt

--->  Attempting to fetch apt_0.5.27.tar.gz from http://www.mirrorservice.org/sites/master.us.finkmirrors.net/distfiles/

--->  Attempting to fetch apt_0.5.27.tar.gz from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/apt

--->  Verifying checksums for apt                                              

--->  Extracting apt

--->  Applying patches to apt

--->  Configuring apt

--->  Building apt

--->  Staging apt into destroot

--->  Installing apt @0.5.27_8

--->  Activating apt @0.5.27_8

--->  Cleaning apt

--->  Updating database of binaries

--->  Scanning binaries for linking errors

--->  No broken files found.

ABR:~ abREN$



https://blog.sciencenet.cn/blog-287062-936708.html

上一篇:Mac安装pgplot
下一篇:在Mac上安装lesstif
收藏 IP: 193.190.231.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

IP: 202.113.11.*   鍥炲 | 璧� 璧� +1 [10]鏉ㄦ鐡�   2023-7-20 19:37
鈥滆繙瑙佽€呭ご鑴戜腑鐨勬ⅵ鎯虫瘮鐜板疄涓讳箟鑰呯殑甯歌瘑鍒ゆ柇鏇存帴杩戠湡瀹炪€傗€� 锛� 缃楁柉璐�

"...the dreams of a visionary mind to be closer to reality than the common sense judgment of  the realists." 锛� Car-Gustaf Arvid Rossby
IP: 202.113.11.*   鍥炲 | 璧� 璧� +1 [9]鏉ㄦ鐡�   2023-7-20 19:37
鈥滆繙瑙佽€呭ご鑴戜腑鐨勬ⅵ鎯虫瘮鐜板疄涓讳箟鑰呯殑甯歌瘑鍒ゆ柇鏇存帴杩戠湡瀹炪€傗€� 锛� 缃楁柉璐�

"...the dreams of a visionary mind to be closer to reality than the common sense judgment of  the realists." 锛� Car-Gustaf Arvid Rossby
IP: 202.113.11.*   鍥炲 | 璧� 璧� +1 [8]鏉ㄦ鐡�   2023-7-9 21:00
[1] 璧靛箍绔�, 娌堢鏈�. 鏈姣曚笟鐢熶竴浣滃彂Nature锛岀嫭绔嬪畬鎴�9鎴愬伐浣滈噺. 绉戝缃戯紝2023-07-08
https://news.sciencenet.cn/htmlnews/2023/7/504367.shtm

[2] Kaifeng Bi, Lingxi Xie, Hengheng Zhang, Xin Chen, Xiaotao Gu & Qi Tian. Accurate medium-range global weather forecasting with 3D neural networks [J]. Nature, 2023-07-05
doi:  10.1038/s41586-023-06185-3
https://www.nature.com/articles/s41586-023-06185-3

[3] Kaifeng Bi, Lingxi Xie, Hengheng Zhang, Xin Chen, Xiaotao Gu, Qi Tian. Pangu-Weather: A 3D High-Resolution Model for Fast and Accurate Global Weather Forecast. 2022-11-03
doi:  10.48550/arXiv.2211.02556
https://arxiv.org/abs/2211.02556

[4] 璋㈠噷鏇�​锛�2023-07-06锛岀櫥涓奛ature姝e垔銆佹娲叉皵璞′腑蹇冭儗涔︺€佽交閲忕骇鏂规鍙戝竷锛氱洏鍙ゆ皵璞″ぇ妯″瀷鍚庣画杩涘睍缁艰堪
https://zhuanlan.zhihu.com/p/641851617

[5] 璋㈠噷鏇�​锛�2022-11-10锛屽崕涓轰簯鎻愬嚭鐩樺彜姘旇薄澶фā鍨嬶細涓暱鏈熸皵璞¢鎶ョ簿搴﹂娆¤秴杩囦紶缁熸暟鍊兼柟娉曪紝閫熷害鎻愬崌10000鍊嶄互涓�
https://zhuanlan.zhihu.com/p/582285853
IP: 202.113.11.*   鍥炲 | 璧� 璧� +1 [7]鏉ㄦ鐡�   2023-7-7 17:08
Home
Verification of the high-resolution (HRES) forecast of surface parameters
Overview

https://charts.ecmwf.int/products/plwww_m_hr_wp_ts/overview/parameter?parameter=2m%20temperature

https://charts.ecmwf.int/products/plwww_m_hr_wp_ts?parameter=10m%20wind%20speed&player_dimension=parameter

10m wind speed

Home
Charts catalogue

https://charts.ecmwf.int/?facets=%7B%22Range%22%3A%5B%5D%2C%22Type%22%3A%5B%22Verification%22%5D%7D
IP: 202.113.11.*   鍥炲 | 璧� 璧� +1 [6]鏉ㄦ鐡�   2022-7-18 22:05
ECMWF
  
European Centre for Medium-Range Weather Forecast
  
娆ф床涓湡澶╂皵棰勬姤涓績
IP: 202.113.11.*   鍥炲 | 璧� 璧� +1 [5]鏉ㄦ鐡�   2022-2-25 22:56
Verification of the high-resolution forecast of surface parameters
Verification of high-resolution forecasts
  
https://apps.ecmwf.int/webapps/opencharts/products/plwww_m_hr_wp_ts?parameter=10m%20wind%20direction


10 m wind direction
IP: 202.113.11.*   鍥炲 | 璧� 璧� +1 [4]鏉ㄦ鐡�   2021-7-29 17:38
Verification of the high-resolution forecast of surface parameters

Verification of the high-resolution forecast of surface parameters
Verification of high-resolution forecasts
  
Verification of the high-resolution forecast of surface parameters against SYNOP observations.
© European Centre for Medium-Range Weather Forecasts

https://apps.ecmwf.int/webapps/opencharts/products/plwww_m_hr_wp_ts?parameter=10m%20wind%20speed
IP: 220.160.125.*   鍥炲 | 璧� 璧� +1 [3]寮犲繂鏂�   2018-7-24 10:49
涓嶆槑瑙夊帀锛�
鍥炲  锛�   
2018-7-24 16:361 妤硷紙鍥炲妤间富锛� 璧� 璧� +1 | 鍥炲
IP: 202.113.11.*   鍥炲 | 璧� 璧� +1 [2]鏉ㄦ鐡�   2018-7-23 23:57
Next, both models differ in availability.  GFS runs 4 times a day, ECMWF runs twice a day.  This means GFS has the opportunity to recover from bad forecasts (say, due to bad input data) by producing more per day.  ECMWF generally outperforms GFS, but if one of the forecast runs was bad, you've got to wait longer for new data.  The reason for the difference in availability is due to the time it takes to compute the model.  Nonhydrostatic models are more computationally expensive, which is why ECMWF is the only global nonhydrostatic model used for operation meteorology.

GFS is free, ECMWF is not. You can get the latest GFS runs for free from NCEP (http://www.ncep.noaa.gov/).  You can even download the model and run it on your home super computer if you are so inclined (http://www.nco.ncep.noaa.gov/pmb...).  To get ECMWF data, you typically need to be affiliated with some organization that pays for it.

Both models produce different products. You will probably be able to get the typic...
IP: 202.113.11.*   鍥炲 | 璧� 璧� +1 [1]鏉ㄦ鐡�   2018-7-23 23:56
What is the difference between the ECMWF, GFS, and other weather forecasting models?
https://www.quora.com/What-is-the-difference-between-the-ECMWF-GFS-and-other-weather-forecasting-models
   
here's a lot of differences between numerical models, so I'll just (briefly) mention the differences between GFS and ECMWF.
  
First both are global models, meaning they produce a forecast for the entire world.  There are also regional models like MM5, NAM, and WRF that produce forecasts specific to a region at a high resolution (I'll talk about resolution later).  Regional models tend to seed their forecasts from global models; GFS provides context for MM5.  I'm not sure what regional models use ECMWF, but I'm sure there are quite a few.
  
GFS and ECMWF use different equations for predicting atmospheric conditions.  GFS is a hydrostatic model and ECMWF is nonhydrostatic.  Hydrostatic models use pressure as vertical coordinates in the forecast (e.g. make forecasts at specific isobars) and ess...

1/1 | 鎬昏:10 | 棣栭〉 | 涓婁竴椤� | 涓嬩竴椤� | 鏈〉 | 璺宠浆

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2025-3-21 14:13

Powered by ScienceNet.cn

Copyright © 2007-2025 中国科学报社

返回顶部