more Ubuntu+Lazarus lazarus / 1-Linux ---------------------------------------------------------------------- nokvedux · 2006-01-02 23:06 You have written much about the combination Ubuntu5.10+Lazarus. The reason I'm coming in here is that a person at our local web-forum in Norway recommended the combination Ubuntu+Lazarus. I have professional expirience with Delphi 4 and 5 under Windows. The last year I have become interested in Linux. I have "played" with installing Knoppix some times on my old pc 400MHz+3.5GB-HD. But now I am writing this in Ubuntu 5.10 on a Fujitsu Siemens computer with Intel 900MHz processor. I have installed FPC and tested it like this: program test1; begin writeln('Hello there'); end. ..and it works. I can compile it just like I did with DOS+TPC in year 1989. Then we come to the more difficult things, because there are certainly much I don't manage in LINUX. I have exercised more then 20-50 hours, so I think I begin to understand some of it. Further down on this page I found two instructions for installing Lazarus. One of these (mini-HowTo) is written by Mikiwoz - I think he was called. I followed his instructions through alien and dpkg Both alien and dpkg I had to install by the command: apt-get install alien dpkg -i fpc_2.0.1-50924_i386.deb dpkg -i fpcsrc_2.0.1-50924_i386.deb dpkg -i lazarus_0.9.10-1_i386.deb But I am not able to find that the lazarus-files has been unzipped to anywhere in my pc. This I am sure of because I do: slocate -u locate lazarus Further down the page I found the article: Lazarus Ubuntu tgz, started by caramel and a comment written by glober. Glober gives a link to https://www.cvshome.org/ , but this is not accessible at this moment. On https://www.cvshome.org/ there was some instructions, I remember, of how to have to set up your Ubuntu before you start installing Lazarus. As I remember one of these conditions was not present in my pc. But I can not access that web site again. This is where I stand. I have never tried Lazarus, but I would like to. But it seemes to be a barrikade to climp for me to get inside. I have tried to install Lazarus for at least 10 hours now and I think it's best to ask for help. So if some of you is interested in helping me installing it may take some time to get me understand. I can use about 1 hour every evening this week and hopefully I have Lazarus running next weekend. But to get there I think I will need your help. If You want to guide me through this installation this week, please write a comment below here and I will certainly find a way to thank you afterwords. ----------------- In the mean time you may enjoy my application pcTrain. This is made specially as a cooperation between me and some of the GIS-teatchers at University in East London. (This appl. is made in Delphi5 and Windows) They use it in the beginning course for GIS and Geomatic-students. http://home.hib.no/ansatte/pns/myapplications/ProPCTrain_eng.exe ---------------------------------------------------------------------- mikiwoz · 2006-01-03 07:51 First of all, the Mini-HowTo instructions, AFAIK, are not updated according to other users' comments - I remember an issue of some sort with alien there. Nevertheless, even when you follow only those instructions, just as they were given, you should have Laz successfuly installed on (K)Ubuntu (I had, otherwise I wouldn't have written the howto). To find out if Laz has been installed, just start Konsole or XTerm or whatever you use as your console emulator under GNOME and type: lazarus if you are logged-in in GNOME or KDE (I suppose it's GNOME, as you're under Ubuntu), Lazarus should start. If it doesn't start - please copy the error output and paste it here. As for slocate: you should try to run it as root, although it *should* find Laz if it's installed for your user to run. And one more thing: I have spent quite a lot of time to get Laz up- and-running on my Kubuntu system, hence the HowTo. As I have written the HowTo, I should - and will - try to help anybody having problems that concern it. But I need some error output to do this. So: try to run all the commands from the HowTo and copy all the output to some text file, so it doesn't get lost, and then paste it all here, if it still doesn't work. Cheers mike ---------------------------------------------------------------------- fab25 · 2006-01-03 13:21 Download the regular rpms. Then at the prompt type : alien -c fpcxxxx.rpm alien -c fpcsrcxxxx.rpm alien -c lazarusxxxx.rpm then you can use dpkg -i to install them in the same order... It will work and create the /etc/fpc.cfg file and so on where a simple alien does not and will put you into troubles (been there)... You will still get a warning message about your system using UTF 8. You can use dpkg-reconfigure locales if you want to switch to iso-8859-1 or 15 for west European encodings since I believe you're Norwegian. I'm running lazarus without any problems on a kubuntu 5.10. ---------------------------------------------------------------------- nokvedux · 2006-01-03 13:36 Very kind of you to answer my question... I am not at home now, but at work. Therefore I can not give you the precise errormessages, but what I remember is this: I packed out the 3 packages fpc, fpcsrc and lazarus on my directory /home/peter/freepascal/ I started the compliation with this command (wich I found somewhere): make clean all The compilation started. Even when the text rolled quite fast I saw that (#¤$!?+¤ÆØÅÅ!!) the compilation had some problems along. But after some time it stopped with (I think it was) Error with the TYPE=INLINE in the files winapi.inc and winapih.inc This inline type is connected to the funcions GetRGB(x,y) or RGB(x,y). Then I found (somewhere) that I could ignore this errorfunction with typing make clean all -Si Then the compilation passed through and stopped with an other error further down in the script. ----------------- I can give more precise or detailed info later to night when I'm home with my Ubuntu. Thank you for helping me. ---------------------------------------------------------------------- Anonymous · 2006-01-03 13:39 What is the point with KUbunu instead of Ubuntu? Is there a reasen for that? Is that someting you recommand? ---------------------------------------------------------------------- Anonymous · 2006-01-03 20:01 2.0.1/units/i386-linux/mysql -Fu/usr/lib/fpc/2.0.1/units/i386-linux/sqlite -Fu/u sr/lib/fpc/2.0.1/units/i386-linux/x11 -Fu/usr/lib/fpc/2.0.1/units/i386-linux/ope ngl -Fu/usr/lib/fpc/2.0.1/units/i386-linux/gtk -Fiinclude -FE. -FUunits/i386-lin ux -Fl/usr/lib/gcc/i486-linux-gnu/4.0.2 -di386 alllclunits.pp winapih.inc(272,1) Error: Procedure type INLINE not supported winapih.inc(273,1) Error: Procedure type INLINE not supported winapih.inc(275,1) Error: Procedure type INLINE not supported winapih.inc(277,1) Error: Procedure type INLINE not supported winapih.inc(278,1) Error: Procedure type INLINE not supported winapih.inc(280,1) Error: Procedure type INLINE not supported winapih.inc(281,1) Error: Procedure type INLINE not supported winapih.inc(290,1) Error: Procedure type INLINE not supported winapih.inc(291,1) Error: Procedure type INLINE not supported winapih.inc(292,1) Error: Procedure type INLINE not supported winapih.inc(293,1) Error: Procedure type INLINE not supported winapih.inc(295,1) Error: Procedure type INLINE not supported lclintfh.inc(40,1) Error: Procedure type INLINE not supported lclintf.pas(59,1) Error: Procedure type INLINE not supported lclintf.pas(61,1) Error: Procedure type INLINE not supported lclintf.pas(65,1) Error: Procedure type INLINE not supported lclintf.pas(67,1) Error: Procedure type INLINE not supported lclintf.pas(81,1) Fatal: There were 17 errors compiling module, stopping lclintf.pas(63,12) Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `/home/nokvedux/lazarus/lcl' make: *** [lcl] Error 2 root@nokvedux:/home/petter/lazarus# and this is where it stops ---------------------------------------------------------------------- fab25 · 2006-01-03 21:49 The simplest way is the following : Do not attempt to compile the source code but use the rpm, download them, alien -c them and then install the .deb packages that you have using dpkg -i... There's no point in doing a "make install" and so on when you can easily use the method I told you which require no special geek knowledge where "make install" can be very tricky and you're likely to lose a lot of time and get grey hair in the process (I did not succeed myself with compiling the source code after 4 hours whereas I installed lazarus in 10 minutes with the method I told you...) The difference between Kubuntu and Ubuntu is only the default environment is gnome for ubuntu and Kde for kubuntu. I prefer Kde, a simple matter of taste. It does not change anything for installing lazarus. ---------------------------------------------------------------------- Anonymous · 2006-01-04 17:54 To fab25 I posted a message at 08.36 You posted your at 08.21 Please notice that when you posted your message, then I was writing mine. I had not seen your message 08.36 before now - 4.jan2005 18.40 PM Now I will try to follow your instructions about installing the code without compiling (make clean all). I have tried that kind of installation earlier to, but I didn't find out of it. I'll write a message later to night if I "make" a good installation. NOKVEDUX (By the way: I have tried to log in to this user forum, but I have never got any code/password in my email. Still I can see my nick=nokvedux is registrated) ---------------------------------------------------------------------- Anonymous · 2006-01-04 21:48 I'm sorry to say. This has been an other unlucky evening trying two do like Jesus - who managed to make life to Lazarus. Still I have not lost all my faith (believe) in the Ubuntu and Lazarus "combination". I still believe Lazarus will "come out". But I admit that I have not started praying to Jesus about helping me with this installation - yet. Perhaps thats what I should do. Afterall I will thank you for beeing pasient with me and I look foreward to another try tomorrow or Friday. One of my problems will be to explain to my wife what I am "doing" and why it is important. This (linux/wifes dilemma) I guess some of you know a lot about. ------------------------------ root@wirjam:/home/petter# alien -c fpc.rpm fpc_2.0.1-50924_i386.deb generated root@wirjam:/home/petter# alien -c fpcsrc.rpm fpcsrc_2.0.1-50924_i386.deb generated root@wirjam:/home/petter# alien -c lazarus.rpm lazarus_0.9.10-1_i386.deb generated root@wirjam:/home/petter# dpkg -i fpc_2.0.1-50924_i386.deb (Leser database ... 62548 filer og kataloger er installerte.) Gjør klar til å bytte ut fpc 2.0.1-50924 (ved bruk av fpc_2.0.1-50924_i386.deb) ... Pakker ut erstatningen fpc ... Setter opp fpc (2.0.1-50924) ... root@wirjam:/home/petter# dpkg -i fpcsrc_2.0.1-50924_i386.deb (Leser database ... 62548 filer og kataloger er installerte.) Gjør klar til å bytte ut fpcsrc 2.0.1-50924 (ved bruk av fpcsrc_2.0.1-50924_i386.deb) ... Pakker ut erstatningen fpcsrc ... Setter opp fpcsrc (2.0.1-50924) ... chown: «mattias:mattias»: ugyldig bruker chown: «mattias:mattias»: ugyldig bruker dpkg: Feil ved behandling av fpcsrc (--install):  underprosessen post-installation script returnerte feilstatus 1 Det oppsto feil ved behandling av:  fpcsrc root@wirjam:/home/petter# dpkg -i lazarus_0.9.10-1_i386.deb (Leser database ... 62548 filer og kataloger er installerte.) Gjør klar til å bytte ut lazarus 0.9.10-1 (ved bruk av lazarus_0.9.10-1_i386.deb) ... Pakker ut erstatningen lazarus ... Setter opp lazarus (0.9.10-1) ... chown: «mattias:mattias»: ugyldig bruker chown: «mattias:mattias»: ugyldig bruker dpkg: Feil ved behandling av lazarus (--install):  underprosessen post-installation script returnerte feilstatus 1 Det oppsto feil ved behandling av:  lazarus ---------------------------------- My comments: the two last dpkg commands results in a kind of error message telling chown: «mattias:mattias»: ugyldig bruker chown: «mattias:mattias»: ugyldig bruker dpkg: Feil ved behandling av fpcsrc (--install):  underprosessen post-installation script returnerte feilstatus 1 Det oppsto feil ved behandling av:  fpcsrc translated to english it means: ugyldig bruker = unguilty user dpkg: Feil ved behandling av fpcsrc (--install):  underprosessen post-installation script returnerte feilstatus 1 Det oppsto feil ved behandling av:  fpcsrc This message says that something went wrong in under the install process of fpcsrc ..and an error status 1 and I got the same message under the dpkg of lazarus****.deb ---------------------------------------- Nokvedux http://home.no/naakkve/ ---------------------------------------------------------------------- Drewski · 2006-01-05 15:46 Hi, An alternative as stated earlier is to install Lazarus from source. Do you already have a working ppc386? Try typing "ppc386 -v" what version does it say? To compile lazarus from source (and any gui program you want to make) you have to have installed the gtk and gdk develepment packages and gdk_pixbuf. Sometimes they are called "gtk+-1.2-dev" or "gtk+-1.2-devel" somtimes the "+" is ommited. So search for gtk and gdk and install any packages ending in "dev" or "devel" the gtk2* and gdk2* packages are not the ones you want. From your earlier error messages it looks like you have installed fpc version 2.0.1. I would recommend you install 2.0.2 at least. Lazarus *should* always compile with the fpc released versions. (versions of fpc ending in an even number) there are also snapshots generated nightly of prebuilt lazarus and fpc rpm's: http://www.de.freepascal.org/lazarus/ see the warning on this page if you get error messages about like: "error linking:-lgtk not found" then you need to install the gtk 1.2 development package HTH Andrew ---------------------------------------------------------------------- Anonymous · 2006-01-05 22:14 I've got so far to night - I'm afraid it's not far at all: I downloaded 3 files from http://www.de.freepascal.org/lazarus/ fpc    Linux    fpc-2.1.1-20060105.i586.rpm fpc sources    Linux    fpc-src-2.1.1-20060105.i586.rpm Lazarus (needs fpc and fpc-src)    Linux    lazarus-0.9.11-20060105.i586.rpm Then I converted them to *.deb files with the alien functon Finally I used the command dpkg -i At least I didn't get any Error-messages! And then I've got Lazarus into my Meny (see image:) http://home.no/naakkve/lazarus.png But it doesn't start. ..and not in terminal window either: root@nokvedux:/usr/bin# lazarus lazarus: error while loading shared libraries: libglib-1.2.so.0: cannot open shared object file: No such file or directory Here is the pp386-version Andrdrew asked for: root@nokvedux:/usr/bin#   ppc386 Free Pascal Compiler version 2.1.1 [2006/01/05] for i386 Copyright (c) 1993-2005 by Florian Klaempfl When Andrew writes about gtk+ I don't follow. Maybe tommorrow? It's getting late. Maybe you guys give me up due to my tiny linux skills. I know very well the straight installation if I buy a Boland Delphi for Windows. it doesn't take more than 5 min to install. But I hoped to try this Lazarus application. I have tried Kylix. The installation was no problem. I got it on the first try. I don't know what to do right now. Yes I do! I must go to bed - as Paul Simon sang in the Amercian Tune: "Still tommorows gonna be another working day, and I'm trying to get som rest. Thats all I'm trying - to get some rest." Nokvedux at bedtime 23.15 ---------------------------------------------------------------------- Anonymous · 2006-01-06 01:12 You're really close as the root user, in a terminal type: dpkg gdk | grep dev this will list a bunch of packages. Install all of them with apt-get install PACKAGENAME1 PACKAGENAME2 etc where packagename is the name of the package If you install the gdk*devel package it will automattically install all the gtk packages you need. HTH Andrew ---------------------------------------------------------------------- Anonymous · 2006-01-06 17:48 sorry, this command doesn't work. Do we have to put som kind of parameter, like -s or other -* dpkg -s And the gdk*devel i don't understand. I did a apt-get upgrade and then it ended with something like gdk-pixbuf-devel updated.. ----------------- But here is the result of the dpkg gdk|grep dev command: root@nokvedux:/# dpkg gdk|grep dev dpkg: need an action option Type dpkg --help for help about installing and deinstalling packages ; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Type dpkg --licence for copyright licence and lack of warranty (GNU GPL) . Options marked produce a lot of output - pipe it through `less' or `more' ! root@nokvedux:/# Nokvedux (still not logged in to this forum while they don't send the code to mail mail-adress. ) ---------------------------------------------------------------------- Drewski · 2006-01-06 21:40 I am sorry, I don't have debian or [k]ubuntu installed so I'm not familiar with dpkg. Perhaps someone with debian or similar can tell you which packages you need to install.... If it said it upgraded gdk-pixbuf-devel then you should have all the needed packages, try running lazarus from the console again. Andrew ---------------------------------------------------------------------- glober · 2006-01-07 04:08 Rather than use dpkg or apt-get, If you are running Kubuntu, then it's much easier getting packages with the Kubuntu package manager "Adept". Ubuntu uses the "Synaptic" package manager. They both have a search function so its a breeze  :wink:   to install gtk and gdk stuff. It's also easy to see what you have installed. I got Lazarus going in Kubuntu in no time. ---------------------------------------------------------------------- Anonymous · 2006-01-07 22:25 Finally good news from NOKVEDUX I've got it ! I've installed Lararus I had to use the lazarus files at: http://www.de.freepascal.org/lazarus/ Othervise I always get an Error-message telling "MATTIAS is not a legal user". And I believe this is also important: apt-get install libgtk2.0-dev apt-get install libgdk-pixbuf-dev apt-get install binutils ..this information I found at: http://users.skynet.be/yvesvanbelle/UbuntuTTT.html#How_to_install_Free _Pascal__Lazurus_on I will paste in all of it here so we don't loose it: ------------------------------ Insallation of Lazarus in KUbuntu: Download from the fpc*.i386.rpm, fpcsrc*.i386.rpm and lazarus*.i386.rpm from the Lazarus Sourceforge.net web site First install alien. Alien allows you to convert LSB, Red Hat, Stampede and Slackware Packages into Debian packages, which can be installed with dpkg    sudo apt-get install alien Then use alien to convert the rpm packages to deb packages with the sudo alien -c rpmpackage.rpm command.  Example:    sudo alien -c fpc-2.0.1-050923.i386.rpm    sudo alien -c fpcsrc-2.0.1-050923.i386.rpm    sudo alien -c lazarus-0.9.10-0.i386.rpm   Lazarus depends on the development packages of the GTK and pixbuf libraries and the GNU assembler, linker and binary utilities. Install these dependecies by executing the instructions below:    sudo apt-get install libgtk2.0-dev    sudo apt-get install libgdk-pixbuf-dev    sudo apt-get install binutils Now you can install the converted packages. cd to the directory where the converted packages are and execute:    sudo dpkg -i *.deb ----------------------------------- As you see, I "converted" to KUbuntu too. Just to try if that was better for Lazarus. But I admit I am longing back to the brown, soft and minimalistic style of Ubuntu. I believe that I can install Lazarus now in ubuntu 5.10. It's about time to get to work with programming in Lazarus. I hope you will not find me anymore in the "installation class" as an "asker". I think I've used more than 30 hours to get through this installation. Still I have a little problem: Can anyone tell me how to log in my username "nokvedux" in this forum. The machine has never sendt me the code to my email. I have tried to registrate several times, but I never get the kode in my email. NOKVEDUX ---------------------------------------------------------------------- mikiwoz · 2006-01-08 18:39 Congratulations! Welcome to the World of Lazarus - What do you want to code today?(tm) And yes, you should install Laz on Ubuntu with those same commands as you did on Kubuntu, since, as someone has already stated, those systems are exactly the same besides the graphical environment. Cheers mike ---------------------------------------------------------------------- felipemdc · 2006-01-10 01:03 Why don't you add this to the wiki? The wiki is located here: http://wiki.lazarus.freepascal.org/index.php/Installing_Lazarus and here: http://wiki.lazarus.freepascal.org/index.php/Lazarus_Documentation ---------------------------------------------------------------------- Anonymous · 2006-01-10 11:49 Answer to sekel I will not add this to the Wiki because I have only installed the beta version of Lazarus. The "so called" stabile version I could not install and I don't understand why the installation stopped with error message "MATTIAS IS NOT A LEGAL USER". I am not called Mattias, but I think one of the guys in the Lazarus team is. NOKVEDUX ---------------------------------------------------------------------- felipemdc · 2006-01-10 12:46 0.9.10 is the latest stable version =) All versions of Lazarus are called Beta because it hasn't reached 1.0 version yet ^^, so you won't find a non-beta Lazarus. Having said that, I think this instructions would be good on the Wiki =) I have many friends witch use debian based system, and this could help them install Lazarus. ---------------------------------------------------------------------- Anonymous · 2006-01-27 21:20 i know u devels dont have time to make packages for every OS, but the easiest way to install lazarus would be if someone would put up 1 or more deb/s for the current stable ubuntu version. i know i'm probably whistling in the wind. ubuntu is pretty popular these days ---------------------------------------------------------------------- Anonymous · 2006-03-28 07:56 Quote from: "glober"Rather than use dpkg or apt-get, If you are running Kubuntu, then it's much easier getting packages with the Kubuntu package manager "Adept". Ubuntu uses the "Synaptic" package manager. They both have a search function so its a breeze  :wink:   to install gtk and gdk stuff. It's also easy to see what you have installed. I got Lazarus going in Kubuntu in no time.