Recent

Author Topic: Problems installing components with Ubuntu 8.0.4  (Read 14946 times)

Stefano

  • New Member
  • *
  • Posts: 39
Problems installing components with Ubuntu 8.0.4
« on: August 15, 2009, 12:25:39 pm »
Hello, I use regular Lazarus under Windows and under Ubuntu 6.10 with Wine. I'd like use Lazarus on my new PC with Ubuntu 8.0.4, but I have problems in installing the components.

In practice, I regular start Lazarus and then I chose the new components (LPK file) to install. When I do the rebuild, Lazarus does not start anymore.

To start Lazarus I must use the terminal, go in Lazarus directory and then type ./ Lazarus, however there is not the new component installed. I post here the message that I get on the terminal when I type. / Lazarus:

Quote
cortelli@cortelli-desktop:~$ ./lazarus
bash: ./lazarus: Nessun file o directory
cortelli@cortelli-desktop:~$ lazarus
Can't open
cortelli@cortelli-desktop:~$ cd /usr/lib/lazarus
cortelli@cortelli-desktop:/usr/lib/lazarus$ ./lazarus
[WARNING] keysymcount=13 larger than expected=8
TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32
Nota: non è stato trovato il file configurazione codetools - uso i valori predefiniti
NOTE: help options config file not found - using defaults
TPkgManager.GetWritablePkgOutputDirectory APackage=UIBLaz 1.0 AnOutDirectory="/home/cortelli/.lazarus/lib/UIBLaz/i386-linux"
TMainIDE.DoNewProject A
TMainIDE.DoNewEditorFile A NewFilename=
TPkgManager.GetWritablePkgOutputDirectory APackage=UIBLaz 1.0 AnOutDirectory="/home/cortelli/.lazarus/lib/UIBLaz/i386-linux"
[TCustomFormEditor.CreateComponent] Class='TForm'
TMainIDE.DoNewEditorFile end unit1.pas

At this point I must in the terminal and in the directory Larzarus, run a clean all:
sudo make clean all

So Lazarus start okay as before, but of course there is not the new component ...

My version of Lazarus is 0.9.24 (although I know it was released 0.9.26.2, but can not find it from Synaptic).

The component ist jvuib (JVUibDataSet).

If I installe other components (powerpdf, DCP), when I install the Lpk packet and make the Rebuild of Lazarus, receive this message: cannot find file "staticpackages.inc", however I must not the clean all maken.

This happen also if I give the create/write permissions to juvuib directory in /usr/lib/lazarus/components: in this case when I make the rebuild of Lazarus, I receive the message: cannot find file "staticpackages.inc".

Can someone help me?

Thank you very much und Goodbye,

Stefano
Stefano Cortelli
Studio Rag. Cortelli
(Preferred languages: Italiano / Deutsch / Français)

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Problems installing components with Ubuntu 8.0.4
« Reply #1 on: August 15, 2009, 02:58:03 pm »
I have successfully installed manualdock in Lazarus/FPC 0.9.26 and 0.9.27 on Ubuntu 8.0.4. I ran startlazarus as root (in a terminal window) and compiled+installed manualdock. When I restarted laz as a regular user I was able to dock the messages window from the view menu, as expected.

To install the Lazarus/FPC 0.9.27/2.3.1 packages in Ubuntu 8.0.4 you need to add a particular Synaptic repository, which is maintained by one of the forum users. Search this forum for the posting where the information is provided (I am not under Linux at this moment so I don't have the information handy, but I can find it for you later on if necessary).
Lazarus/FPC on Linux

Stefano

  • New Member
  • *
  • Posts: 39
Re: Problems installing components with Ubuntu 8.0.4
« Reply #2 on: August 15, 2009, 06:41:20 pm »
Thank you, I found in the forum this repository:
deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe
and:
deb http://www.hu.freepascal.org/lazarus/ lazarus-testing universe

Both haben Problems with Synaptic, I cannot install the new version of Lazarus.

Have you an other repository to use with Ubuntu?

Than you again,

Stefano
Stefano Cortelli
Studio Rag. Cortelli
(Preferred languages: Italiano / Deutsch / Français)

mica

  • Full Member
  • ***
  • Posts: 196

Stefano

  • New Member
  • *
  • Posts: 39
Re: Problems installing components with Ubuntu 8.0.4
« Reply #4 on: August 15, 2009, 10:18:22 pm »
Thanks for your message, unfortunately I receive an error when I open Synaptic.

This is the line, thas I added to sources.list:
deb http://ppa.launchpad.net/ximion/ppa/ubuntu/

or:
deb http://ppa.launchpad.net/ximion/ppa/ubuntu/ dists hardy

What must I write in sources.list?

Thank you again,

Stefano
Stefano Cortelli
Studio Rag. Cortelli
(Preferred languages: Italiano / Deutsch / Français)

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Problems installing components with Ubuntu 8.0.4
« Reply #5 on: August 16, 2009, 04:11:08 am »
Have you an other repository to use with Ubuntu?

Donald Shimoda's testing repository (info at http://donaldshimoda.blogspot.com). You only need to get three .debs: lazarus, fpc, and fpc-src. Ignore the invalid gpg key. Uninstall any lazarus*.deb and fpc-*.deb/fp-*.deb packages first.
Lazarus/FPC on Linux

Stefano

  • New Member
  • *
  • Posts: 39
Re: Problems installing components with Ubuntu 8.0.4
« Reply #6 on: August 16, 2009, 08:12:01 pm »
Thank you, I found only this line:
deb http://www.petrobox.net/lazarus/ lazarus-stable universe

I have old Lazarus und Fpc before uninstalled und the new version of Lazarus/Fpc installed.

Unfortunately I cannot run Lazarus: I see for a moment Lazarus 0.9.27 und then nothing.

Also using Terminal it's the same:

Quote
cortelli@cortelli-desktop:~$ lazarus
Can't open
cortelli@cortelli-desktop:~$ cd /usr/lib/lazarus
cortelli@cortelli-desktop:/usr/lib/lazarus$ ./lazarus
bash: ./lazarus: Nessun file o directory
cortelli@cortelli-desktop:/usr/lib/lazarus$ lazarus
Can't open
cortelli@cortelli-desktop:/usr/lib/lazarus$

What can I do?

Thank you again,

Stefano

Stefano Cortelli
Studio Rag. Cortelli
(Preferred languages: Italiano / Deutsch / Français)

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Problems installing components with Ubuntu 8.0.4
« Reply #7 on: August 16, 2009, 08:30:14 pm »
Try the lazarus-testing repository instead of lazarus-stable.
When launching from the terminal window, issue the command startlazarus instead of lazarus.
Lazarus/FPC on Linux

Stefano

  • New Member
  • *
  • Posts: 39
Re: Problems installing components with Ubuntu 8.0.4
« Reply #8 on: August 16, 2009, 09:41:52 pm »
Thank you again. I found not the line for the testing repository, but only this:

Quote
gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 46CC8C32

gpg --export 46CC8C32 | sudo apt-key add -

sudo apt-key list

sudo aptitude update

I found no other repository.

I tried the startlazarus command, I receive this message:

Quote
cortelli@cortelli-desktop:~$ startlazarus
TLazarusManager.Run starting /home/cortelli/.lazarus/bin/lazarus ...
Threading has been used before cthreads was initialized.
Make cthreads one of the first units in your uses clause.
Runtime error 211 at $085CC105
  $085CC105
  $08063724
  $085CC17D

cortelli@cortelli-desktop:~$

What can I do?

Thank you again, very much.

Stefano
Stefano Cortelli
Studio Rag. Cortelli
(Preferred languages: Italiano / Deutsch / Français)

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Problems installing components with Ubuntu 8.0.4
« Reply #9 on: August 16, 2009, 10:57:03 pm »
I found not the line for the testing repository

This is the first posting in that blog:

Code: [Select]
Now you can select one of two options:

deb http://www.petrobox.net/lazarus/ lazarus-stable universe

having fpc 2.2.4 and lazarus 0.9.27

or

deb http://www.petrobox.net/lazarus/ lazarus-testing universe

having fpc 2.3.1 and lazarus 0.9.27

Here is a test -- find the line referring to the lazarus-testing repository  :)
Lazarus/FPC on Linux

Stefano

  • New Member
  • *
  • Posts: 39
Re: Problems installing components with Ubuntu 8.0.4
« Reply #10 on: August 17, 2009, 01:02:28 pm »
Thank you, unfortunately the Problem is like before:

Quote
cortelli@cortelli-desktop:~$ startlazarus
TLazarusManager.Run starting /home/cortelli/.lazarus/bin/lazarus ...
Threading has been used before cthreads was initialized.
Make cthreads one of the first units in your uses clause.
Runtime error 211 at $085CC105
  $085CC105
  $08063724
  $085CC17D

I see Lazarus 0.9.27 und after all disappear.

What can I try?

Thank you again,

Stefano
Stefano Cortelli
Studio Rag. Cortelli
(Preferred languages: Italiano / Deutsch / Français)

jctaborda

  • New Member
  • *
  • Posts: 21
Re: Problems installing components with Ubuntu 8.0.4
« Reply #11 on: August 17, 2009, 02:43:00 pm »
You have to initialize threads like the error message says.

- first run make clean all
- start lazarus
- in Tools->Configure "build Lazarus" in field "Options:" type -Facthreads
- build lazarus again and it should work

It is explained in this wiki page:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#Lazarus_crashes_with_runtime_error_211_after_I_installed_a_component


Hospital Nacional de Clínicas
Universidad Nacional de Córdoba
www.unc.edu.ar

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Problems installing components with Ubuntu 8.0.4
« Reply #12 on: August 17, 2009, 04:20:46 pm »
What can I try?

It seems to me that you have not completely uninstalled your previous Lazarus/FPC installation.

Try this:

- use apt/synaptic to uninstall any package that is Lazarus and FPC or FP-* related;
- delete directory /home/cortelli/.lazarus;
- delete everything Lazarus and FPC or FP-* related in /etc/, /bin/, /sbin/, /lib/, /usr/bin/, /usr/sbin/, /usr/lib/, /usr/local/bin/, /usr/local/sbin/, /usr/local/lib/ or in any other directory where you may have built/installed Lazarus/FPC;
- install Lazarus 0.9.27 + FPC 2.3.1 from the lazarus-testing repository above (the three packages indicated);
- reboot.

Run `updatedb`at the command prompt and wait for it to complete. Then issue `where startlazarus` or `locate startlazarus`. The startlazarus and lazarus executables should be found in only one location.

The required shortcut should have been added to your Ubuntu menus. You will know everything went fine when Lazarus starts in Gtk2 mode.

FR: Si ca ne marche toujours pas alors tu pourrais essayer d'installed a partir du programme-source ce qui devrait creer des fichiers executables compatibles a 100% avec ton systeme et de verifier que toutes les bibliotheques necessaires y sont instalees.
« Last Edit: August 17, 2009, 09:44:18 pm by Troodon »
Lazarus/FPC on Linux

Stefano

  • New Member
  • *
  • Posts: 39
Re: Problems installing components with Ubuntu 8.0.4
« Reply #13 on: August 20, 2009, 04:19:40 pm »
Quote
cortelli@cortelli-desktop:~$ cd /usr/lib/lazarus
cortelli@cortelli-desktop:/usr/lib/lazarus$ sudo make clean all
[sudo] password for cortelli:
make: *** No rule to make target `clean'.  Stop.
cortelli@cortelli-desktop:/usr/lib/lazarus$

Thank you, unfortunately I have the problem not resolved yet...

May be with version 0.9.28 (when available) schould it possible?

Now I try with Wine, the versione 0.9.13 is ok, I try with 0.9.26.2

In any case a great "thanks" for your time.

Goodbye,

Stefano

FR: Merci pour ta reponse detaillé. Malheureusement je ne suis pas encore réussi à installer Lazarus sous Linux. Peut-être devrait-il être plus facile quand la nouvelle versione de Lazarus (0.9.28) sera disponible? Seront les officiaux Repository mis à jour? Pour le moment je pense d'essayer à installer la version pour Windows avec Wine. J'avais déjà essayé aver un autre ordinateur avec Ubuntu 6.10 et Lazarus 0.9.13 et ça à marché plutôt bien... En tous cas j'éspère que tôt je puisse réussir à installer (d'une manière un peu plus facile...) Lazarus en natif sous Ubuntu. Merci beaucoup pour la réponse et l'aide. Bonne soiré et à bientôt, Stefano
« Last Edit: August 20, 2009, 04:25:54 pm by Stefano »
Stefano Cortelli
Studio Rag. Cortelli
(Preferred languages: Italiano / Deutsch / Français)

Stefano

  • New Member
  • *
  • Posts: 39
Re: Problems installing components with Ubuntu 8.0.4
« Reply #14 on: September 02, 2009, 12:14:36 pm »
Hallo, I have tried with Wine. The installatiion is ok, unfortunately it's no possible installing components. Wenn I open an lpk file und confirm with ok, there is a path error (can't find file .....). I've noted, that the path of the error message is a little different with the correct path, a letter of the path vermmisse.

With Windows all ist ok.

With Lazarus 0.9.13 there war no problems with Wine. Maybe is it useful for the staff of Lazarus? I think, that it would be interessant, that Lazarus also unter Wine run, if possible (the installation with Wine is very easy).

Best regards,

Stefano

PS: I have tried, also the DEB files of Daily Snapshots to installieren. Alles ok with FPC, but I meet Problems with Lazarus IDE: I have libgtk2.0.0 vers. 2.12 instead 2.8.0 that Lazarus require. Unfortunately Ubuntu 8.04 hat only vers. 2.12:
http://packages.ubuntu.com/hardy/libgtk2.0-0

PS2: Maybe is it easy with Fedora or andere Linux Distributions instead of Ubuntu?
Stefano Cortelli
Studio Rag. Cortelli
(Preferred languages: Italiano / Deutsch / Français)

 

TinyPortal © 2005-2018