To download the Xenly's source code, use Git and GCC.
Run a Git Bash, PowerShell, or Command Prompt.
# Download the Xenly's source code
$ git clone https://github.com/Magayaga/xenly.git
$ cd xenly
To build the Xenly programming language, open a Git Bash, PowerShell, or Command Prompt in the directory containing the make.bat
or main.sh
file and run the following command:
# Run the program in Shell
$ bash main.sh
# or Batchfile
$ ./make.bat
Verify you can run Xenly programming language.
$ xenly --version
Xenly 0.1.0-preview9 (Pre-alpha release)
Copyright 2023-2024 Cyril John Magayaga
If your development machine doesn't return a Xenly version, add the location to your PATH:
In the Windows search box, type env
.
Click Edit the system environment variables.
Click Environment Variables....
In the user variable section, select Path and click Edit....
Click New, and enter the path to the xenly
directory.
In each window that you just opened, click Apply or OK to dismiss it and apply the path change.
apt-get
Update the package index files
$ sudo apt-get update
After, to install the Git and GCC.
$ sudo apt-get install gcc git
To download the Xenly's source code. Install Git, then run a GNU Bash.
# Download the Xenly's source code
$ git clone https://github.com/Magayaga/xenly.git
$ cd xenly
To build the Xenly programming language, open a GNU Bash in the directory containing the makefile
or main.sh
file and run the following command:
# Run the program in Shell
$ bash main.sh
# or Makefile
$ make
1. Open the ~/.bash_profile
file in a text editor. You can do this using the vim
or nano
text editor with the following command:
$ vim ~/.bash_profile
2. Add the following line to the file to include the directory where Xenly is installed in your PATH:
export PATH="/usr/local/bin:$PATH"
Replace /usr/local/bin
with the actual directory where Xenly is installed if you chose a different location.
3. Save the changes and exit the text editor. After saving the changes, you need to apply them to your current shell session. You can do this by running:
$ source ~/.bash_profile
4. You can copy the executable file to a directory that is in your PATH.
$ sudo cp xenly /usr/local/bin
To install the Git and GCC, use Homebrew.
# Install the Git and GCC
$ brew install gcc git
To download the Xenly's source code. Install Git, then run a GNU Bash.
# Download the Xenly's source code
$ git clone https://github.com/Magayaga/xenly.git
$ cd xenly
To build the Xenly programming language, open a GNU Bash in the directory containing the makefile
or main.sh
file and run the following command:
# Run the program in Shell
$ bash main.sh
# or Makefile
$ make
1. Open the ~/.bash_profile
file in a text editor. You can do this using the vim
or nano
text editor with the following command:
$ vim ~/.bash_profile
2. Add the following line to the file to include the directory where Xenly is installed in your PATH:
export PATH="/usr/local/bin:$PATH"
Replace /usr/local/bin
with the actual directory where Xenly is installed if you chose a different location.
3. Save the changes and exit the text editor. After saving the changes, you need to apply them to your current shell session. You can do this by running:
$ source ~/.bash_profile
You can copy the executable file to a directory that is in your PATH.
$ sudo cp xenly /usr/local/bin