Skip to content

lzpfmh/ponyc

 
 

Repository files navigation

Getting help

Editor support

Installation

Mac OS X using Homebrew

$ brew update 
$ brew install ponyc

Linux

Gentoo

layman -a stefantalpalaru
emerge dev-lang/pony

A live ebuild is also available in the overlay (dev-lang/pony-9999) and for Vim users there's app-vim/pony-syntax.

Other distributions

We're transitioning to bintray. For now, please build from source.

Windows

You will need to build from source.

Building ponyc from source

Building on Linux Linux and OS X

First, install LLVM 3.6 using your package manager. You may need to install zlib, ncurses, pcre2, and ssl 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 pcre2
sudo pkg install libunwind

This will build ponyc and compile helloworld:

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

Building on Mac OS X Linux and OS X

First, install homebrew if you haven't already. Then, brew the required dependencies:

$ brew update
$ brew install llvm
$ brew install pcre2

This will build ponyc and compile helloworld:

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

Building on Windows 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++ 46.6%
  • C 37.9%
  • Pony 14.6%
  • Makefile 0.5%
  • GAP 0.2%
  • Lua 0.2%