Thursday, January 22, 2015
Thursday, January 15, 2015
my perlbrew build options
mostly copied from Debian, as shown by
perl -V
here they are:
perlbrew install -j 5 -Dusethreads -Duselargefiles -Dcccdlflags=-fPIC -Duse64bitint -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Doptimize=-O2 -Duseshrplib perl-5.20.1
"-j 5" thanks to http://www.dagolden.com/index.php/1384/parallel-make-for-perlbrew/
perl -V
here they are:
perlbrew install -j 5 -Dusethreads -Duselargefiles -Dcccdlflags=-fPIC -Duse64bitint -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Doptimize=-O2 -Duseshrplib perl-5.20.1
"-j 5" thanks to http://www.dagolden.com/index.php/1384/parallel-make-for-perlbrew/
fglrx (AMD proprietary driver) on Debian Wheezy on Athlon 5350 with AM1H-ITX
The open source radeon driver works fine, but if for some reason you want to install the proprietary driver the Wheezy default will not recognize the integrated graphics AMD Radeon HD 8400. Fortunately the version in wheezy-backports does.
Add this line to /etc/apt/sources.list:
deb http://ftp.debian.org/debian wheezy-backports main contrib non-free
then
apt-get update
apt-get install -t wheezy-backports fglrx-driver fglrx-control
aticonfig --initial
reboot
Yes, the reboot is required, the open source radeon driver needs to be blacklisted and the package fglrx-driver apparently does that for you.
Add this line to /etc/apt/sources.list:
deb http://ftp.debian.org/debian wheezy-backports main contrib non-free
then
apt-get update
apt-get install -t wheezy-backports fglrx-driver fglrx-control
aticonfig --initial
reboot
Yes, the reboot is required, the open source radeon driver needs to be blacklisted and the package fglrx-driver apparently does that for you.
Friday, January 9, 2015
convert .msg files from Outlook to a format readable on linux with a text editor
How to convert .msg files from Outlook to a format readable on linux with a text editor:
from http://www.matijs.net/software/msgconv/
or
or on Debian and derivatives such as Ubuntu:
then
from http://www.matijs.net/software/msgconv/
cpanm Email::Outlook::Message
or
cpan -i Email::Outlook::Message
or on Debian and derivatives such as Ubuntu:
apt-get install libemail-outlook-message-perl
then
msgconv my_unreadable_binary_file.msg less my_unreadable_binary_file.eml
Wednesday, December 31, 2014
dwarf fortress on Debian x64 Wheezy
got these errors at start
solved by adding i386 architecture and installing a couple of packages
this does not fix the OpenAL sound issue, but I disable the sound anyway
./libs/Dwarf_Fortress: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory ./libs/Dwarf_Fortress: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory ./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory ./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory
solved by adding i386 architecture and installing a couple of packages
dpkg --add-architecture i386 apt-get install libsdl1.2debian:i386 libgtk2.0-0:i386 libsdl-image1.2:i386 libsdl-ttf2.0-0:i386
this does not fix the OpenAL sound issue, but I disable the sound anyway
Thursday, August 28, 2014
profiling Catalyst applications with Devel::NYTProf
While attempting to profile a Catalyst application with Devel::NYTProf, I kept getting errors when processing the nytprof.out file because the file was not closed properly.
The solution from http://fkumro.blogspot.ro/2011/11/using-nytprof-with-catalyst.html did not work, kept getting "panic at nytprofcalls line 191" messages.
What worked was starting with
perl -d:NYTProf scripts/myapp_server.pl
adding a
sub stop :Path {
exit(0);
}
in the Root.pm and loading that in the browser to stop the server.
The solution from http://fkumro.blogspot.ro/2011/11/using-nytprof-with-catalyst.html did not work, kept getting "panic at nytprofcalls line 191" messages.
What worked was starting with
perl -d:NYTProf scripts/myapp_server.pl
adding a
sub stop :Path {
exit(0);
}
in the Root.pm and loading that in the browser to stop the server.
Subscribe to:
Posts (Atom)