Skip to content

ozra/ponyc

 
 

Repository files navigation

Getting help

Editor support

Installation

Mac OSX using Homebrew

$ brew update 
$ brew install ponyc

Linux

  • ponyc: Recommended. Should work on most modern x86_64 platforms.
  • ponyc-avx2: For platforms with AVX2 support.

Apt-get and Aptitude

First, import the public key of ponylang.org:

$ wget -O - http://www.ponylang.org/releases/buildbot@lists.ponylang.org.gpg.key | sudo apt-key add -

Add the ponylang.org repository to apt-get:

sudo add-apt-repository "deb http://ponylang.org/releases/apt ponyc main"
sudo add-apt-repository "deb http://ponylang.org/releases/apt ponyc-avx2 main"

Note that add-apt-repository may require to install python-software-properties or software-properties-common.

Then, update your repository cache:

$ sudo apt-get update

Install ponyc or ponyc-avx2:

$ sudo apt-get install <package name>

Zypper

First, add the ponylang.org repository:

$ sudo zypper ar -f http://www.ponylang.org/releases/yum/ponyc.repo

Install ponyc or ponyc-avx2:

$ sudo zypper install <package-name>

YUM

First, add the ponylang.org repository:

$ sudo yum-config-manager --add-repo=http://www.ponylang.org/releases/yum/ponyc.repo

Install ponyc or ponyc-avx2:

$ sudo yum install <package-name>

Windows

64-Bit installers for Windows 7, 8, 8.1 and 10 will be available soon.

Download installers

All installers can also be downloaded from ponylang.org's servers:

Building on Linux build status

First, install LLVM 3.6 using your package manager. You may need to install zlib and ncurses as well.

This will build ponyc and compile helloworld:

$ make config=release
$ ./build/release/ponyc examples/helloworld

Building on FreeBSD

First, install the required dependencies:

sudo pkg install gmake
sudo pkg install llvm36
sudo pkg install libunwind

This will build ponyc and compile helloworld:

$ make config=release
$ ./build/release/ponyc examples/helloworld

Building on Mac OSX

First, install homebrew if you haven't already. Then, brew llvm36, like this:

$ brew update
$ brew install llvm --with-rtti

This will build ponyc and compile helloworld:

$ make config=release
$ ./build/release/ponyc examples/helloworld

Building on Windows

The LLVM 3.7 (not 3.6!) prebuilt binaries for Windows do NOT include the LLVM development tools and libraries. Instead, you will have to build and install LLVM 3.7 from source. You will need to make sure that the path to LLVM/bin (location of llvm-config) is in your PATH variable.

You will also need to build and install premake5 (not premake4) from source. We need premake5 in order to support current versions of Visual Studio.

You may also need to install zlib and ncurses.

$ premake5 vs2013
$ Release build with Visual Studio (ponyc.sln)
$ ./build/release/ponyc examples/helloworld

Packages

No packages published

Languages

  • C++ 58.5%
  • C 40.6%
  • Other 0.9%