Running Slic3r from git on GNU Linux - clefranc/Slic3r GitHub Wiki
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.
The following procedure has been tested on Ubuntu 14.04 LTS, for openSUSE 13.2 see below.
About perl
Slic3r works fine with Perl 5.12, 5.14, 5.18, 5.20, 5.22: in other words all versions except for 5.16. If your distribution ships 5.16 it is recommend that you use Perlbrew for installing an alternative user-land perl.
Install dependencies through the package manager
Install the following packages:
sudo apt-get install -y git build-essential libgtk2.0-dev libwxgtk2.8-dev libwx-perl libmodule-build-perl libnet-dbus-perl libexpat1-dev
If you also want the 3D preview you need to install these too:
sudo apt-get install -y libxmu-dev freeglut3-dev libwxgtk-media2.8-dev
If you're using perlbrew, install cpanm this way:
perlbrew install-cpanm
Otherwise, install cpanm this way:
sudo apt-get install curl
-curl -L http://cpanmin.us | sudo perl - --sudo App::cpanminus
Get Slic3r
git clone https://github.com/alexrj/Slic3r.git
cd Slic3r
Install dependencies
If you're using perlbrew, use these commands:
CPANM=~/perl5/perlbrew/bin/cpanm perl Build.PL
CPANM=~/perl5/perlbrew/bin/cpanm perl Build.PL --gui
Otherwise use these:
cpanm perl Build.PL
cpanm perl Build.PL --gui
(The --gui
one is not needed if you don't need the graphical interface.)
Running Slic3r
Slic3r can now be run:
./slic3r.pl
Other Distributions
openSUSE 13.2
Add opensuse build service repository with Parse::PMfile
zypper ar -r http://download.opensuse.org/repositories/devel:/languages:/perl:/CPAN-P/openSUSE_13.2/devel:languages:perl:CPAN-P.repo -n build:perl:cpan-p -f
Install required packages
zypper install git-core curl perl-Wx perl-App-cpanminus perl-ExtUtils-CppGuess perl-Moo perl-threads perl-Math-PlanePath perl-Class-Accessor perl-Parse-PMFile wxWidgets-ansi-devel libXmu-devel libXi-devel
Clone code
git clone https://github.com/alexrj/Slic3r.git
Change to cloned directory
cd Slic3r
Build base program
perl Build.PL
Build GUI
perl Build.PL --gui
Run Slic3r
./slic3r.pl
Fedora 17 package equivalents
sudo yum install git curl gcc-c++ perl-Wx \
perl-Module-Build perl-App-cpanminus perl-Moo
sudo perl Build.PL
sudo perl Build.PL --gui
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
Gentoo package equivalents
Via overlay:
layman -a axs
emerge =media-gfx/Slic3r-9999
Building by Hand:
NOTE -- letting App-cpanminus do its thing on a Gentoo Linux system has a high chance of messing up your system image! Proceed with caution.
layman -a perl-experimental-snapshots
emerge App-cpanminus
emerge dev-perl/Moo
(You might still need to run sudo perl Build.PL
and sudo perl Build.PL --gui
after that one.)