Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
perlbrew [2014/05/27 14:31] popel |
perlbrew [2014/11/07 14:58] popel |
||
---|---|---|---|
Line 6: | Line 6: | ||
===== How to setup the Perlbrew environment ===== | ===== How to setup the Perlbrew environment ===== | ||
- | Add to your '' | + | Add to your '' |
source / | source / | ||
Line 17: | Line 17: | ||
export PERL5LIB="" | export PERL5LIB="" | ||
+ | |||
+ | To finish the Perlbrew environment setup, run (in a new bash session) | ||
+ | |||
+ | perlbrew switch perl-5.18.2 | ||
Line 42: | Line 46: | ||
If you did this on your machine (32bit), you still need to ssh to some 64bit machine (e.g. '' | If you did this on your machine (32bit), you still need to ssh to some 64bit machine (e.g. '' | ||
- | Useful | + | Useful |
You can install the modules also manually ('' | You can install the modules also manually ('' | ||
Line 57: | Line 61: | ||
perlbrew list-modules > list.txt | perlbrew list-modules > list.txt | ||
perlbrew switch perl-5.16.3 | perlbrew switch perl-5.16.3 | ||
- | cpanm -n Tk # Tk tests are long and pop up many windows | + | |
+ | # but to get support for XFT anti-aliased fonts on newer Ubuntu, let's do: | ||
+ | cpanm -n -v git:// | ||
cpanm -n UNIVERSAL:: | cpanm -n UNIVERSAL:: | ||
cpanm < list.txt | cpanm < list.txt | ||
+ | |||
+ | ==== Tricky modules ==== | ||
+ | |||
+ | === Tk === | ||
+ | |||
+ | When compiled without XFT support, the fonts are ugly and some fonts (Cyrillic, Arabic,...) are completely unreadable. | ||
+ | First, you need some packages (which should be installed by default, so the following command is not needed) | ||
+ | |||
+ | sudo apt-get install libx11-dev libfreetype6-dev libxft-dev libpng-dev libz-dev | ||
+ | |||
+ | However, new Debian and Ubuntu (14.04) changed location of some files (freetype.h, | ||
+ | |||
+ | cpanm -n -v git:// | ||
+ | | ||
+ | Last time, I found some tests failing, so I add '' | ||
+ | |||
+ | widget | ||
+ | |||
+ | and you should see a window with nice anti-aliased font. | ||
+ | |||
+ | === Algorithm:: | ||
+ | In '' | ||
+ | |||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | === Algorithm:: | ||
+ | [[https:// | ||
+ | |||
+ | === ÚFAL modules unreleased on CPAN === | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ===== How to install Perlbrew for a new architecture ===== | ||
+ | |||
+ | source / | ||
+ | |||
+ | (You probably have this in your '' | ||
+ | |||
+ | wget -O - http:// | ||
+ | perlbrew install-cpanm | ||
+ | |||
+ | That's all! Now, install some perl, as described [[perlbrew# | ||
+ | |||
+ | perlbrew available | ||
+ | perlbrew install -j 4 perl-5.18.2 | ||
+ | # If this fails as mentioned above, finish the installation with something like | ||
+ | # cd / | ||
+ | perlbrew switch perl-5.18.2 | ||