Blame INSTALL

Packit 43654c
Packit 43654c
 Irssi installation instructions
Packit 43654c
 -------------------------------
Packit 43654c
Packit 43654c
To compile irssi you need:
Packit 43654c
Packit 43654c
- glib-2.6 or greater
Packit 43654c
- pkg-config
Packit 43654c
- openssl (for ssl support)
Packit 43654c
- perl-5.6 or greater (for perl support)
Packit 43654c
- terminfo or ncurses (for text frontend)
Packit 43654c
Packit 43654c
For most people, this should work just fine:
Packit 43654c
Packit 43654c
 ./autogen.sh     (for people who just cloned the repository)
Packit 43654c
 ./configure      (if this script already exists, skip ./autogen.sh)
Packit 43654c
 make
Packit 43654c
 su
Packit 43654c
 make install     (not _really_ required except for perl support)
Packit 43654c
Packit 43654c
configure options
Packit 43654c
Packit 43654c
  --prefix
Packit 43654c
Packit 43654c
  Specifies the path where irssi will be installed.
Packit 43654c
  YES, you can install irssi WITHOUT ROOT permissions
Packit 43654c
  by using --prefix=/home/dir
Packit 43654c
Packit 43654c
  --with-proxy
Packit 43654c
Packit 43654c
  Build the irssi proxy (see startup-HOWTO).
Packit 43654c
Packit 43654c
  --with-perl=[yes|no|module]
Packit 43654c
Packit 43654c
  Enable Perl support
Packit 43654c
  yes    enable builtin (default)
Packit 43654c
  no     disable
Packit 43654c
  module enable as module
Packit 43654c
Packit 43654c
  --with-perl-lib=[site|vendor|DIR]
Packit 43654c
Packit 43654c
  Specify installation dir for Perl libraries
Packit 43654c
  site   install in dir for site-specific modules (default)
Packit 43654c
  vendor install in dir for vendor-specific modules
Packit 43654c
  DIR    install in DIR
Packit 43654c
Packit 43654c
  --with-socks
Packit 43654c
Packit 43654c
  Build with socks library
Packit 43654c
Packit 43654c
  --with-bot
Packit 43654c
Packit 43654c
  Build irssi-bot
Packit 43654c
Packit 43654c
  --without-textui
Packit 43654c
Packit 43654c
  Build without text frontend
Packit 43654c
Packit 43654c
If anything is in non-standard path, you can just give the paths in
Packit 43654c
CPPFLAGS and LIBS environment variable, eg.:
Packit 43654c
Packit 43654c
  CPPFLAGS=-I/opt/openssl/include LDFLAGS=-L/opt/openssl/lib ./configure
Packit 43654c
Packit 43654c
Packit 43654c
Packit 43654c
 Perl problems
Packit 43654c
 -------------
Packit 43654c
Packit 43654c
Perl support generates most of the problems. There's quite a many
Packit 43654c
things that can go wrong:
Packit 43654c
Packit 43654c
 - Compiling fails if you compile irssi with GCC in a system that has
Packit 43654c
   perl compiled with some other C compiler. Very common problem with
Packit 43654c
   non-Linux/BSD systems. You'll need to edit src/perl/*/Makefile files
Packit 43654c
   and remove the parameters that gcc doesn't like. Mostly you'll just
Packit 43654c
   need to keep the -I and -D parameters and add -fPIC.
Packit 43654c
 - If there's any weird crashing at startup, you might have older irssi's
Packit 43654c
   perl libraries installed somewhere, and you should remove those.
Packit 43654c
 - Dynamic libraries don't want to work with some systems, so if your
Packit 43654c
   system complains about some missing symbol in Irssi.so file, configure
Packit 43654c
   irssi with --with-perl-staticlib option (NOT same as --with-perl=static).
Packit 43654c
 - If configure complains that it doesn't find some perl stuff, you're
Packit 43654c
   probably missing libperl.so or libperl.a. In debian, you'll need to do
Packit 43654c
   apt-get install libperl-dev
Packit 43654c
 - For unprivileged home directory installations, you probably do not want 
Packit 43654c
   to specify --with-perl-lib=(site|vendor). Instead, you can use the 
Packit 43654c
   default perl installation target (below the irssi prefix). If you are
Packit 43654c
   using local::lib you can also choose to install there by specifying
Packit 43654c
   --with-perl-lib=$PERL_LOCAL_LIB_ROOT/lib/perl5
Packit 43654c
Packit 43654c
You can verify that the perl module is loaded and working with "/LOAD"
Packit 43654c
command. It should print something like:
Packit 43654c
Packit 43654c
Module               Type    Submodules
Packit 43654c
...
Packit 43654c
perl                 static  core fe
Packit 43654c
Packit 43654c
Packit 43654c
 System specific notes
Packit 43654c
 ---------------------
Packit 43654c
Packit 43654c
 Cygwin
Packit 43654c
Packit 43654c
Getting perl scripting to work needs a few things:
Packit 43654c
Packit 43654c
 - configure with --with-perl-staticlib
Packit 43654c
Packit 43654c
 - libperl.dll is required in linking and running irssi, it's normally
Packit 43654c
   located somewhere around /usr/lib/perl5/5.6.1/cygwin/CORE/libperl5_6_1.dll
Packit 43654c
   copy it to eg. /usr/bin/libperl.dll
Packit 43654c
Packit 43654c
 - -DUSEIMPORTLIB is needed to be defined while compiling src/perl directory.
Packit 43654c
   It doesn't hurt to be defined everywhere, so configure irssi with:
Packit 43654c
Packit 43654c
     CFLAGS='-DUSEIMPORTLIB' ./configure --with-perl-staticlib