Can't download coco2d-x from git

Hi
I’m trying to download cocos from git, writing this cmd:

git clone https://github.com/cocos2d/cocos2d-x.git

but I can’t. I’m having problems with OpenSSL.

* OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 MiB | 2.93 MiB/s   
* Closing connection 0
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Has anyone had this problem?
I tried to re-install git, brew, openssl, configure account, ssh, etc. but nothing works.
I’m with mac os sierra 10.12, and the firewalls is turned off.

SSH:

Admins-Mac:Desktop admin$ ssh -vT git@github.com
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /Users/admin/.ssh/config
debug1: /Users/admin/.ssh/config line 1: Applying options for github.com
debug1: /Users/admin/.ssh/config line 5: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to ssh.github.com [192.30.253.123] port 443.
debug1: Connection established.
debug1: identity file /Users/admin/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/admin/.ssh/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: Remote protocol version 2.0, remote software version libssh_0.7.0
debug1: no match: libssh_0.7.0
debug1: Authenticating to ssh.github.com:443 as 'git'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: ssh-rsa
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8
debug1: Host '[ssh.github.com]:443' is known and matches the RSA host key.
debug1: Found key in /Users/admin/.ssh/known_hosts:3
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/admin/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 535
debug1: Authentication succeeded (publickey).
Authenticated to ssh.github.com ([192.30.253.123]:443).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
Hi raz0r007! You've successfully authenticated, but GitHub does not provide shell access.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3432, received 2104 bytes, in 0.4 seconds
Bytes per second: sent 8609.3, received 5277.9
debug1: Exit status 1

This could be related to your virtual machine some how. I tried yesterday on different computers connected to different networks and all could clone just fine.

Yes, I cloned it in windows and it works. But I would like know why it does not work in the VM.

I found the solution! I will share it for the community (maybe anyone have the same issue).

In the VM follow this steps:
Clic on “Edit virtual machine settings”.
Tab Hardware > Network Adapter.
In “Network connection” clic on the radio “Bridged: connected directly to the physical network”.
Clic OK and restart VM.

Thnx

Do you build and publish ios/mac having only windows and VM with mac?

yep I’m using the vm, I don’t have Mac.

Could you write steps how to do that?

Regards,
Chp

I don’t understand the question. If you have a Mac (virtualizated or not) you can do whatever you want. If you have problems virtualizating a mac, use google, exists patch’s for vmware for do it. Make sure that your hardware can execute instructions of mac computers. Else, you can’t virtualizate.

Hi,
I am not sure about “If you have a Mac (virtualizated or not) you can do whatever you want”

I read some posts in past and basically there were problems… Here some posts from cocos2d-x forum:



Status from past: do not waste time buy mac to release ios/mac apps in apple store

Is it better now? Do you have apps released in apple store with success using Mac VM?

My concerns:

  1. Is it legal, officially supported to use Mac VM for development and publishing apps?
  2. Can apple detect that I use VM and reject/remove my app, lock account?
  3. Does ios simulator works in VM?
  4. VM Performance

I have powerfull PC and old mac so if you have some working and tested solution I will be more than happy to check it.

Regards,
CHP

In my case, I’m only developing. Perhaps when I decide publish the app in App Store I buy a mac. Despite of it, I don’t have problems with virtualization: I can build a app, compile, debug, etc. Yes, iOS Simulator works in my case.

Can apple detect that I use VM and reject/remove my app, lock account?

I have no idea. If anyone know some case… tell us.