skycoin / cx

A new programming language for blockchain.
Other
43 stars 48 forks source link

Compiling from source (Following README.md) #327

Closed archerixx closed 3 years ago

archerixx commented 3 years ago

Describe the bug Downloaded .zip of code from https://github.com/skycoin/cx and extracted it. Running cx-setup dirrectly from folder closes console window in few seconds, even after removing NEX from previously reported issue. Run Command prompt and navigated to folder where cx-develop was extracted. Run cx-setup.bat in console and only then errors can be seen, since .bat file closes itself automatically when run from folder dirrectly. Would be useful to add stop command at end so user can see what needs to be fixed (i.e. change of PATH dirrectories). Error encountered at first try of cx-setup will be stated below.

To Reproduce Steps to reproduce the behavior:

  1. Remove Environment PATH from Windows machine for CX and GoLang
  2. Open Command prompt and navigate to folder where cx-develop is extracted (i.e c:\Users\\Desktop\cx-develop)
  3. Type: cx-setup.bat and wait for setup to finish.
  4. Scroll back to ERROR parts and read them.
  5. Errors that will be encountered are: ERROR: ERROR: GOPATH not set! FIX IT! ....so we'll use C:\Users\tursi\go for Go's install path ERROR: CX's workspace environment variable; CXPATH is not set! FIX IT! ....so we'll use C:\Users\tursi\cx for CX's workspace ERROR: Your PATH var needs C:\Users\tursi\OneDrive\Desktop\CX Setup changes\bin

Expected behavior Installation of CX and its tests

Screenshots image

Desktop:

Additional context Documentation should include setup beforehand. User must install GoLang and set PATH on Envrionment Variables. Quick simple steps on how to do should be provided, so first 3 errors can be avoided. CXPATH and GOPATH are important for installation to go through. Should provide information that GIT is needed for setup to be completed successfully. Few unresolved errors are mentioned in previous issue about go-gl. Few other Errors can be avoided if GO/CXPATH is set and GIT is install beforehand (some errors that come up because two above are missing): ERROR: c:\users\\go\bin needs to be in your path enviroment variable AND cx.exe must be accessible ERROR CODE: 9009 ERROR in 1st pass - goyacc cxgo0 ERROR CODE: 1 ERROR in 2nd pass - goyacc cxgo ERROR CODE: 1 for both errors above: "System cannot find the path specified.

archerixx commented 3 years ago

CXPATH needs to be added to Environment variables on Windows. GOPATH needs to be previously set with %GOPATH%/bin added to %PATH%