Steps to install Lazarus from source lazarus / 1-Linux ---------------------------------------------------------------------- rturney · 2007-01-21 01:36 I have been using Lazarus for a while on SUSE10, 10.1 & 10.2.  I installed it using the RPMs from this website.  I am very happy with Lazarus and plan on working with it for all my software projects.  I recently tried a new Linux distro, Vector Linux, which is very good and I would like to install Lazarus on it.  Unfortunately, it doesn't use RPMs (it is based on Slackware) and I will need to install from source.  I downloaded fpc-2.0.4.i386-linux.tar, fpc- src-2.0.4.source.tgz & lazarus-0.9.20-0.tar.gz.  I need some help with this and have been looking around the forum for some instructions on how to do it.  I can't seem to find anything like a "How to".  I have installed small programs like firefox and realplayer from source but have a feeling this will be much more complex.  It may be "over my head" but I am willing to give it a try and I don't give up easily.  I was wondering if someone with this knowledge would be willing to guide me through it?  I am not in a big hurry and will be patient if you can't respond to my questions right away.  If it takes a month or two to finish the install is ok, I would like to learn. Thanks, -Bob ---------------------------------------------------------------------- Almindor · 2007-01-21 10:39 Ok the steps are somewhere in the wiki but here's a short howto: First the requirements: * libglib * libgtk * libgdk-pixbuf[2] and some others, but these are the mostly missed. Since your distro is source based you should have them installed if you installed their packages (gtk1, glib) Now the steps: 1. get fpc 2.0.4 binaries for linux (since you don't have rpm or deb, get the tar.gz) 2. install them preferebly into /usr/local (installer asks, so change it) 3. get lazarus sources either from tarball or svn 4. unpack lazarus into home, go in and just "make" That's is, now you can just add a shortcut to lazarus with a nice icon to your desktop Don't try to install lazarus, it's better off just in home, much easier package manipulation. ---------------------------------------------------------------------- eric · 2007-01-21 13:14 You also need to get the FPC sources and put them somewhere. It doesn't really matter where, but /usr/src/packages/SOURCES/ is commonly used. When you first run Lazarus you will get a message saying that it's unable to locate the FPC source. You can OK this, then configure it in the Environmental Options dialog. Eric ---------------------------------------------------------------------- rturney · 2007-01-21 17:35 Thanks to both of you for your help.  I am now making sure that I have the libraries you listed.  I'm sorry I didn't check the Wiki first  :oops: I did a "whereis" on the three libraries mentioned and found the first two, but not the third.  So I think my next step will be to "google" for "libgdk-pixbuf[2]" and install it? Code: [Select]$ whereis libglib libglib: /usr/lib/libglib.a /usr/lib/libglib.la /usr/lib/libglib.so vector:/~ $ whereis libgtk libgtk: /usr/lib/libgtk.la /usr/lib/libgtk.so /usr/lib/libgtk.a vector:/~ $ whereis libgdk-pixbuf[2] libgdk-pixbuf[2]: vector:/~ $ whereis libgdk-pixbuf libgdk-pixbuf: vector:/~ $ whereis libgdk-pixbuf2 libgdk-pixbuf2: Thanks again, -Bob ---------------------------------------------------------------------- eric · 2007-01-21 19:04 Make sure that you've got the -dev (or -devel) versions of those packages installed, because these contain the header files which are needed for compiling. Eric ---------------------------------------------------------------------- rturney · 2007-01-21 20:14 Thanks, I will check for that. -Bob ---------------------------------------------------------------------- NicoF · 2007-01-22 15:41 Try the alien program to convert the RPM to DEB. I have used it a few times and it's great although I have not tried it with the Lazarus rpm's http://kitenet.net/~joey/code/alien.html Nico ---------------------------------------------------------------------- rturney · 2007-01-22 23:29 Thanks.  I was thinking about modifying the install script for Ubuntu that is described in the Wiki.  But first I'm going to create a new partition on my HDD to install a clean version of Vector Linux on, so that if I make some bad mistakes I won't trash my working install of VL.  The only problem with this idea is that I need to resize an ext3 partition and that is not so straightforward.  But I think I've found a way to do it with GParted and am getting ready to try that.  Thanks for the idea about Alien.  I'll read about it and see if it could help.  I'll reply back after I make some progress. Thanks, -Bob ---------------------------------------------------------------------- RudieD · 2007-01-24 12:03 GParted works great, I used it last night on my Ubuntu 6.0.0 ext3 part ! ---------------------------------------------------------------------- rturney · 2007-01-25 06:39 The GParted 0.3.3 Live CD easily resized the ext3 partition I needed to create a clean install of Vector Linux. I recommend it!  Unfortunately the Vector install failed because Lilo can't boot into the new partition.  I'm having to postpone my Lazarus compile from source adventure until I can straighten that out.