CX Installation on macOS
Info
To install cx on macOS the best way is to use Homebrew.
Homebrew-Install
Download and install Homebrew by pressing ⌘ + Space and typing in Terminal
to start Terminal, then type in the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Installation
-
Press ⌘ + Space and type in
Terminal
to start Terminal. -
Type in the following lines to install CX:
brew tap skycoin/homebrew-skycoin brew install skycoin-cx
-
To update use the following command:
brew update skycoin-cx
Hello, World!
To check our Installation with something more than a version output we will now make a cx-file to print out 'Hello World!'
-
Make a new text-file and rename it to hello-world.cx
-
Open the file with a text editor and type in the following:
package main func main () { str.print("Hello, World!") }
-
Save and close
-
Press ⌘ + Space and type in Terminal to start Terminal.
-
Move to the direction where your hello-world.cx is and type in cx hello-world.cx or just drag and drop your file into the terminal after typing in
cx
followed by a Space
Next Step
The next step should be to search for a development environment that fits you to code as easy as possible. Have a look into Programming Tools to find and setup your favorite Code Editor.