Skip to content

Running Slic3r from git on GNU Linux

KazW edited this page Apr 30, 2013 · 22 revisions

The commands to install some of the packages are aimed at Debian/Ubuntu (apt-based) derivatives. Other distributions should have these packages, but precise names may vary and the command used to install them may be different. To see package names and commands for some other popular distributions, see the end of this page.

Install dependencies through the package manager

Install the following packages:

sudo apt-get install git build-essential libgtk2.0-dev libwxgtk2.8-dev libwx-perl libmodule-build-perl libnet-dbus-perl

sudo apt-get install cpanminus

There is a fair chance that your distribution will not have the cpanminus package. In that case, just install it with these two commands:

sudo apt-get install curl
curl -L http://cpanmin.us | perl - --sudo App::cpanminus

Get Slic3r

git clone https://github.com/alexrj/Slic3r.git
cd Slic3r

Install misc. perl dependencies through cpanm

Next you need to install some perl packages. Some of these may already be available in your package manager. The difference is that the cpanm version should be newer, but will require automatic compilation.

If your package manager has a version of Wx >= 0.9901 you could replace that large package with:

sudo apt-get install libwx-perl

The command to install all of the dependencies through cpanm is:

sudo cpanm Boost::Geometry::Utils Math::Clipper \
    Math::ConvexHull Math::ConvexHull::MonotoneChain Math::Geometry::Voronoi Math::PlanePath Moo Wx 

Running Slic3r

Slic3r can now be run:

./slic3r.pl

Other Distributions

openSUSE package equivalents

zypper install curl
zypper install perl-Wx
zypper install cpanm
sudo cpanm Boost::Geometry::Utils Math::Clipper \
    Math::ConvexHull Math::Geometry::Voronoi Math::PlanePath Moo Wx Net::DBus

Fedora 17 package equivalents

sudo yum install git curl gcc-c++ perl-Wx \
    perl-Module-Build perl-App-cpanminus perl-Moo
sudo cpanm Boost::Geometry::Utils Math::Clipper \
   Math::ConvexHull Math::Geometry::Voronoi Math::PlanePath parent

Fedora 18 package equivalents

sudo yum install git curl gcc-c++ perl-Wx \
    perl-Module-Build perl-App-cpanminus perl-Moo \
    perl-Math-PlanePath perl-Boost-Geometry-Utils perl-Math-Clipper \
    perl-Math-ConvexHull perl-Math-Geometry-Voronoi perl-parent \
    perl-Growl-GNTP perl-Class-XSAccessor perl-XML-SAX-ExpatXS \
    perl-Math-ConvexHull-MonotoneChain perl-ExtUtils-XSpp \
    perl-ExtUtils-CppGuess perl-ExtUtils-Typemaps-Default \
    perl-Capture-Tiny perl-Test-Base perl-Test-Differences \
    perl-Text-Diff perl-Module-Build-WithXSpp
Clone this wiki locally