Skip to content

gwelr/ponyc

 
 

Repository files navigation

Getting help

Editor support

Installation

Mac OSX using Homebrew

$ brew install http://www.ponylang.org/releases/ponyc.rb
$ ponyc --version
0.1.2

A pull request for the ponyc formula to be part of homebrew-core is pending.

Linux

  • ponyc: Recommended. Should work on most modern x86_64 platforms.
  • ponyc-noavx: Ponyc for platforms without AVX support (for example certain virtual machines)
  • ponyc-numa: A numa-aware version of ponyc.

Apt-get and Aptitude

First, import the public key of ponylang.org:

$ wget -O - http://www.ponylang.org/releases/[email protected] | sudo apt-key add -

Add the ponylang.org repository to apt-get:

deb http://ponylang.org/releases/apt ponyc main
deb http://ponylang.org/releases/apt ponyc-numa main
deb http://ponylang.org/releases/apt ponyc-noavx main

Then, update your repository cache:

$ sudo apt-get update

Install ponyc, ponyc-noavx or ponyc-numa:

$ sudo apt-get install <package name>
$ ponyc --version
0.1.2

Zypper

First, add the ponylang.org repository:

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

Install ponyc, ponyc-noavx or ponyc-numa:

$ sudo zypper install <package-name>
$ ponyc --version
0.1.2

YUM

First, add the ponylang.org repository:

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

Install ponyc, ponyc-noavx or ponyc-numa:

$ sudo yum install <package-name>
$ ponyc --version
0.1.2

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

To build a NUMA-aware runtime, install libnuma-dev using your package manager and build as follows:

$ make use=numa config=release

Building on Mac OSX

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

$ brew tap homebrew/versions
$ brew install llvm36

This will build ponyc and compile helloworld:

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

Building on Windows

The LLVM 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.6 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++ 59.8%
  • C 39.3%
  • Other 0.9%