Tips and Hits or HOWTO install and configure software
Please consider this page
as my personal notepad. I have installed a lot of software under
Linux, Solaris, OSF1 and began this project just to remember what I did.
I do not guarantee that my recipes will work for you.
- KOI8 fonts for GD.pm perl module
Tips below are Obsoleted by the Time !
- Slackware-3.1 - Some bugs/features ?
After installing of new Slackware (this is another story) I decided
install postgres95 database on my computer. I found several
- permissions of /dev/null and /dev/tty incorrect (must be a+w)
- no link /lib/libdl.so -> /lib/libdl.so.1.7.14
- I had to install libreadline myself (probably I just
skipped it during installation of Slackware). Anyway, here is
a corrected Makefile.in
(there is still one bug but I was to lazy to correct it,
just make directory /usr/include/readline by hand and skip
section installdirs in Makefile.in)
- no include file /usr/include/dlfcn.h (I had to copy this file
- flex 2.5.3 which comes with Slackware-3.1 is buggy. I had to
downgrade to 2.5.2.
- more bugs/features are coming ...
- PostgreSQL and locale
I have a page with information how to
get PostgreSQL works with national alphabet !
- perl and 8-bit characters
Last news :Perl 5.004 is out ! Download it from CPAN or
NOTE:Syntax of using locale support has changed !!!
You must explicitly specify use locale in block you want to use locale
(other than C) stuff.
To run perl debugger with locale support use -Mlocale switch !
Perl is a great tool for text processing and writing cgi-scripts.
Unfortunately, perl does know very little about koi8-r or similar charsets.
I discuss koi8-r because I actually work with this charset but
everyting must be valid for another charset :-)
official release 5.003 has support for LC_CTYPE. I checked it under
Linux (libc 5.3.12 and later) and Sparc Solaris 2.4, 2.5. It works, for example you may do this:
$a =~ s/(.)/[\U$1\L$1]/g;
You must get (Don't forget set LC_CTYPE to koi8-r):
But perl 5.003 has no support for LC_COLLATE and if you try
print sort @a;
the output will be
which isn't we expected. The right answer would be if you have right
LC_COLLATE and system has support for them.
Here is a patch by
Jarkko Hietaniemi to perl v. 5.003_05,
which is available at CPAN or here.
Please note, this is not an official release, on my system I have an official perl 5.003
and this development version renamed as perl8.
Here is some semi-official notes about status of the patch.
Do not forget set LC_CTYPE and LC_COLLATE !!!
Note for Linux:
Uugh, that's all.
- Latest release libc 5.4.7 for Linux has support for LC_COLLATE -
download it here
- Get LC_CTYPE and
Right place for them under /usr/share/locale/koi8-r/ directory.
- If you have a problem with compiling perl try my perl8
- pine and 8-bit characters
This is well-known problem discussed in newsgroups and I'm not willing
to waste bandwidth. Just apply pine3.95.koi8.patch
(Unfortunately, I don't remember the author of this patch,
previous version was buggy, this patch was provided me
by Dima Kim. If anybody give me email of
the original author I would place a reference to him)
After building a pine, don't forget in Setup dialog select :
I checked this patch under Linux, Sparc Solaris 2.5 and it runs fine.
- Netscape+Java+Linux works !!!
This workaround I found from the Usenet and checked myself on
my Linux box (linux kernel v.2.0.22, Xfree86 v.3.12G). Java applets
works much more stable if you compile libc with old gnu malloc and points
Netscape to use this libc.
You may try this libc.so.5.4.7
Check also this page
- How to setup automount daemon under Linux (2.x).
Now you can access remote directories under /net directory, for example,
cd /net/neptun/sai2 will get you access to /sai2 directory of host neptun.
Please consider this setup as an example, which really works for me. You may
find more hints in documentation in doc/ subdirectory of amd tree.
- get archive file amd-upl102-3.tar.gz
- apply patch amd_tab.patch
- compile and install following instructions
- get simple map file amd.net
- start amd daemon as sh /etc/amd.start
How to setup locale (koi8-r, ru_RU) under Linux
Actually, you may install libc 5.3.5 (I have on my ftp)
and locale will works. I don't know
what was changed in locale code but glimpse works now fine with
cyrillic documents (you need a patch for v.3.0 to make glimpse
- Ooh, libc 5.3.5 breaks joe - produces segmentation fault during
initialization. You need to change all instances of valloc (actually
in vfile.h, vfile.c, b.c) to something like bad_valloc and recompile joe.
- Installing gcc 2.7.2 under Solaris 2.5
Do not use GNU sed (at least gnu sed v. 3.0)
or fixincludes will produce segmentation fault.
After switching to /usr/bin/sed compilation passed smoothly.
I used to strip executables in /usr/local/lib/gcc-lib/....
- make LANGUAGES=c
- make stage1
- make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O2" LANGUAGES=c
- make stage2
- make CC="stage2/xgcc -Bstage2/" CFLAGS="-g -O2"
- make compare
- make install CC="stage2/xgcc -Bstage2/" CFLAGS="-g -O"
- How to russify Netscape v.2.0 (This page is out
of date !!! Use this link
- confused with message 'netscape: locale koi8-r not supported by Xlib; trying C.'?
I define $LC_CTYPE as koi8-r and netscape prints
warning message as above. My environment: Linux - libc 5.2.18, linux 1.3.61,
XFree86 v.3.12B, koi8-r locale; Solaris 2.5, Openwin. Here is a workaround.
- get X11R5_NLS.tar.gz and X11R6_locale.tar.gz from
- directories of interest: /usr/X11/lib/X11/locale
and /usr/X11/lib/X11/nls. Installation is straightforward.
- you have to add 'koi8-r ru_SU.KOI8-R' string
in file /usr/X11/lib/X11/nls/nls.alias and change number in 1st line.
- for Openwin under Solaris I made symbolic link koi8-r -> iso_8859_1
in /usr/openwin/lib/locale directory.
Leave a message ?