Recent

Author Topic: more Ubuntu+Lazarus  (Read 23270 times)

nokvedux

  • Guest
more Ubuntu+Lazarus
« on: January 03, 2006, 12:06:54 am »
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

  • Full Member
  • ***
  • Posts: 130
RE: more Ubuntu+Lazarus
« Reply #1 on: January 03, 2006, 08:51:00 am »
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

  • New Member
  • *
  • Posts: 22
RE: more Ubuntu+Lazarus
« Reply #2 on: January 03, 2006, 02:21:22 pm »
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

  • Guest
compiling Lazarus
« Reply #3 on: January 03, 2006, 02:36:14 pm »
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

  • Guest
Re: RE: more Ubuntu+Lazarus
« Reply #4 on: January 03, 2006, 02:39:56 pm »
What is the point with KUbunu instead of Ubuntu?
Is there a reasen for that?
Is that someting you recommand?

Anonymous

  • Guest
RE: Re: RE: more Ubuntu+Lazarus
« Reply #5 on: January 03, 2006, 09:01:18 pm »
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

  • New Member
  • *
  • Posts: 22
RE: Re: RE: more Ubuntu+Lazarus
« Reply #6 on: January 03, 2006, 10:49:29 pm »
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

  • Guest
RE: Re: RE: more Ubuntu+Lazarus
« Reply #7 on: January 04, 2006, 06:54:29 pm »
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

  • Guest
RE: Re: RE: more Ubuntu+Lazarus
« Reply #8 on: January 04, 2006, 10:48:29 pm »
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

  • Jr. Member
  • **
  • Posts: 55
RE: Re: RE: more Ubuntu+Lazarus
« Reply #9 on: January 05, 2006, 04:46:37 pm »
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

  • Guest
RE: Re: RE: more Ubuntu+Lazarus
« Reply #10 on: January 05, 2006, 11:14:31 pm »
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

  • Guest
RE: Re: RE: more Ubuntu+Lazarus
« Reply #11 on: January 06, 2006, 02:12:50 am »
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

  • Guest
RE: Re: RE: more Ubuntu+Lazarus
« Reply #12 on: January 06, 2006, 06:48:08 pm »
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

  • Jr. Member
  • **
  • Posts: 55
RE: Re: RE: more Ubuntu+Lazarus
« Reply #13 on: January 06, 2006, 10:40:21 pm »
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

  • Full Member
  • ***
  • Posts: 130
more Ubuntu+Lazarus
« Reply #14 on: January 07, 2006, 05:08:59 am »
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.

 

TinyPortal © 2005-2018