maodouio / meteor-master-classes

毛豆网Meteor在线师徒班
http://www."培养国内第一批Meteor布道者".com
15 stars 7 forks source link

安装meteor curl遇到奇怪的问题. #36

Open wangleihd opened 9 years ago

wangleihd commented 9 years ago
RicharddeMac-mini:~ richard$ curl https://install.meteor.com/ | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6121    0  6121    0     0   2970      0 --:--:--  0:00:02 --:--:--  3517
Downloading Meteor distribution

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
Installation failed.
RicharddeMac-mini:~ richard$ 

这两天的解决方法:

 $ sudo port -f uninstall curl
 $ sudo port install curl
RicharddeMac-mini:~ richard$ curl https://install.meteor.com/ -k | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6121    0  6121    0     0   1472      0 --:--:--  0:00:04 --:--:--  3204
Downloading Meteor distribution

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
Installation failed.
RicharddeMac-mini:~ richard$ curl https://install.meteor.com/ --insecure | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6121    0  6121    0     0   2612      0 --:--:--  0:00:02 --:--:--  3027
Downloading Meteor distribution

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
Installation failed.
$ sudo curl http://curl.haxx.se/ca/cacert.pem -o curl-ca-bundle.crt
$ sudo curl --capath /opt/loca/share/curl/root.crt https://install.meteor.com | sh
非常奇怪, 为什么我重装系统就会出现上面的问题.我现在解决两天了.都没有解决.谁遇到相同问题,能不能指点我一下.
Computing dependencies for wget
--->  Dependencies to be installed: gnutls curl-ca-bundle gmp libidn libtasn1 nettle p11-kit desktop-file-utils glib2 libffi popt libxslt libxml2 xz pcre bzip2 libedit
--->  Fetching archive for curl-ca-bundle
--->  Attempting to fetch curl-ca-bundle-7.42.1_0.darwin_14.noarch.tbz2 from http://packages.macports.org/curl-ca-bundle
--->  Attempting to fetch curl-ca-bundle-7.42.1_0.darwin_14.noarch.tbz2.rmd160 from http://packages.macports.org/curl-ca-bundle
--->  Installing curl-ca-bundle @7.42.1_0
--->  Activating curl-ca-bundle @7.42.1_0
--->  Cleaning curl-ca-bundle

是不是安装 curl-ca-bundle 这个软件引起的.

jzwzz commented 9 years ago

加一个 -k 参数,或者--insecure参数 curl https://install.meteor.com/ -k | sh

wangleihd commented 9 years ago

这两个参数都加过了. 还是不行.

limingth commented 9 years ago

Mac上我好像都是用 brew 安装的

wangleihd commented 9 years ago

重装系统, 没有更新前, 先把meteor安装成功.

已重装系统解决了.

ennea8 commented 9 years ago

用docker吧 docker hub上有不少meteor镜像 https://registry.hub.docker.com/search?q=meteor&searchfield=