Recent

Author Topic: lazarus wont run  (Read 21785 times)

running_idiot

  • New Member
  • *
  • Posts: 11
lazarus wont run
« on: November 09, 2006, 06:45:40 pm »
Update: This problem was solved, but theres another problem, please look down on my second post.

I am a mac newbie and I want to run my delphi projects on mac os. So I tried to download and install Lazarus step-by-step by this manual - but there were problems in installing GTK through fink. I tried to install it several times and all I got is this crazy and long message:

Quote from: "x11 shell"

kaja-bileks-computer:~ kajabilek$ sudo /sw/bin/apt-get install gdk-pixbuf gtk+ gtk+-data gtk+-shlibs gtk-doc
Password:
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, gdk-pixbuf is already the newest version.
Sorry, gtk+ is already the newest version.
Sorry, gtk+-data is already the newest version.
Sorry, gtk+-shlibs is already the newest version.
Sorry, gtk-doc is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 0  not upgraded.
10 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up passwd (20051118-11) ...
/sw/var/lib/dpkg/info/passwd.postinst: line 6: update-passwd: command not found
/sw/bin/dpkg: error processing passwd (--configure):
 subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of gnome-libs-shlibs:
 gnome-libs-shlibs depends on passwd (>= 20011007-1); however:
  Package passwd is not configured yet.
/sw/bin/dpkg: error processing gnome-libs-shlibs (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gdk-pixbuf-shlibs:
 gdk-pixbuf-shlibs depends on gnome-libs-shlibs; however:
 Package gnome-libs-shlibs is not configured yet.
/sw/bin/dpkg: error processing gdk-pixbuf-shlibs (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gdk-pixbuf:
 gdk-pixbuf depends on gdk-pixbuf-shlibs (= 0.18.0-12); however:
  Package gdk-pixbuf-shlibs is not configured yet.
/sw/bin/dpkg: error processing gdk-pixbuf (--configure):
 dependency problems - leaving unconfigured
Setting up libxml2-bin (2.6.22-1003) ...
/sw/var/lib/dpkg/info/libxml2-bin.postinst: line 8: update-xml-catalog: command not found
/sw/bin/dpkg: error processing libxml2-bin (--configure):
 subprocess post-installation script returned error exit status 127
Setting up openjade (1.3.2-1029) ...
/sw/sbin/update-sgml-catalog: line 1: tempfile: command not found
/sw/bin/dpkg: error processing openjade (--configure):
 subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of docbook-dtd:
 docbook-dtd depends on libxml2-bin; however:
  Package libxml2-bin is not configured yet.
/sw/bin/dpkg: error processing docbook-dtd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of docbook-xsl:
 docbook-xsl depends on libxml2-bin; however:
  Package libxml2-bin is not configured yet.
/sw/bin/dpkg: error processing docbook-xsl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of docbook-dsssl-nwalsh:
 docbook-dsssl-nwalsh depends on libxml2-bin; however:
  Package libxml2-bin is not configured yet.
/sw/bin/dpkg: error processing docbook-dsssl-nwalsh (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gtk-doc:
 gtk-doc depends on libxml2-bin (>= 2.6.19-2); however:
  Package libxml2-bin is not configured yet.
 gtk-doc depends on openjade (>= 1.3.2-1028); however:
  Package openjade is not configured yet.
 gtk-doc depends on docbook-dtd (>= 4.2.0-2); however:
  Package docbook-dtd is not configured yet.
 gtk-doc depends on docbook-xsl (>= 1.62.4-2); however:
  Package docbook-xsl is not configured yet.
 gtk-doc depends on docbook-dsssl-nwalsh (>= 1.78-2); however:
  Package docbook-dsssl-nwalsh is not configured yet.
/sw/bin/dpkg: error processing gtk-doc (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 passwd
 gnome-libs-shlibs
 gdk-pixbuf-shlibs
 gdk-pixbuf
 libxml2-bin
 openjade
 docbook-dtd
 docbook-xsl
 docbook-dsssl-nwalsh
 gtk-doc
E: Sub-process /sw/bin/dpkg returned an error code (1)


where is the problem?

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: problems with gtk
« Reply #1 on: November 09, 2006, 08:44:49 pm »
Quote from: "running_idiot"
I am a mac newbie and I want to run my delphi projects on mac os. So I tried to download and install Lazarus step-by-step by this manual - but there were problems in installing GTK through fink. I tried to install it several times and all I got is this crazy and long message:

Quote from: "x11 shell"

kaja-bileks-computer:~ kajabilek$ sudo /sw/bin/apt-get install gdk-pixbuf gtk+ gtk+-data gtk+-shlibs gtk-doc

where is the problem?


In my experience fink can be pretty unreliable. What version of OS X are you running? Is it a PowerPC or Intel machine? And what version of fink did you install?

You might check to see whether you have everything to run Lazarus. It's possible fink installed everything you need despite the errors. Look in the /sw/lib folder. You should have about 100Mb or more of .dynlib files, if I remember correctly (not at my Mac right now).

You can go ahead and install Lazarus and start it - if you're missing a library you'll probably get an error.

Ideally someday we won't need to use GTK widgetset on OS X - that's the only reason we have to mess around with fink in the first place. For example, lots of progress has been made on a Qt widgetset.

running_idiot

  • New Member
  • *
  • Posts: 11
RE: Re: problems with gtk
« Reply #2 on: November 09, 2006, 09:32:27 pm »
OK, problem was solved with a help from FINK help team - you have to run the fink stuff at normal terminal and not in x11 (or only with -ls atribut). The libraries was installed well, but...

when trying to run lazarus, it writes this error message:


Quote
dyld: Library not loaded: /sw/lib/libglib-1.2.0.dylib
  Referenced from: /usr/local/share/lazarus/lazarus
  Reason: no suitable image found.  Did find:
        /sw/lib/libglib-1.2.0.dylib: mach-o, but wrong architecture
Trace/BPT trap


Does that mean, that I cant use lazarus with intel?

I got intel mac mini, 10.4.7 system

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: Re: problems with gtk
« Reply #3 on: November 10, 2006, 04:30:45 pm »
Quote from: "running_idiot"
dyld: Library not loaded: /sw/lib/libglib-1.2.0.dylib
  Referenced from: /usr/local/share/lazarus/lazarus
  Reason: no suitable image found.  Did find:
        /sw/lib/libglib-1.2.0.dylib: mach-o, but wrong architecture
Trace/BPT trap


Is it possible that you installed the PowerPC binary libraries instead of the Intel libraries? Offhand that's what it sounds like from the "wrong architecture" error message.

Be sure to install the Intel .dmg for fink. It's possible that the PowerPC version of fink runs under Rosetta, but it looks like the GTK libraries won't.

Not sure what the best way to remove fink and the libraries it installed in order to start over. I know I've wiped the /sw folder clean a time or two in the past when fink failed, but you probably don't want to do this if it existed prior to when you ran fink or you'll be deleting files that other programs may need.

Maybe the fink team can help you here too - I don't see an uninstall instructions.

ovidius

  • New Member
  • *
  • Posts: 21
lazarus wont run
« Reply #4 on: November 10, 2006, 09:10:11 pm »
Quote

running_idiot wrote:
dyld: Library not loaded: /sw/lib/libglib-1.2.0.dylib
Referenced from: /usr/local/share/lazarus/lazarus
Reason: no suitable image found. Did find:
/sw/lib/libglib-1.2.0.dylib: mach-o, but wrong architecture
Trace/BPT trap


Is it possible that you installed the PowerPC binary libraries instead of the Intel libraries? Offhand that's what it sounds like from the "wrong architecture" error message.

Be sure to install the Intel .dmg for fink. It's possible that the PowerPC version of fink runs under Rosetta, but it looks like the GTK libraries won't.

Not sure what the best way to remove fink and the libraries it installed in order to start over. I know I've wiped the /sw folder clean a time or two in the past when fink failed, but you probably don't want to do this if it existed prior to when you ran fink or you'll be deleting files that other programs may need.

Maybe the fink team can help you here too - I don't see an uninstall instructions.


 I am very sorry to be harsh. But this tip is indeed pretty misleading and useless. The problem is not with fink, but with lazarus.

You have to install the daily snapshots to get a lazarus version for intel macs. This one is working on my intel mac mini:

http://www.hu.freepascal.org/lazarus/.
The installed version seems to be the powerpc lazarus, which does not work with an intel fink. By the way, if you install an powerpc fink than you can use the powerpc lazarus under rosetta. It worked very fine for me.

Phil

  • Hero Member
  • *****
  • Posts: 2737
lazarus wont run
« Reply #5 on: November 10, 2006, 09:32:09 pm »
Quote from: "ovidius"
The installed version seems to be the powerpc lazarus, which does not work with an intel fink. By the way, if you install an powerpc fink than you can use the powerpc lazarus under rosetta. It worked very fine for me.


You may be right - it didn't occur to me that he might have installed the wrong version of Lazarus.

Good to know that PowerPC FPC apps work under Rosetta!

Question: Can the Intel and PowerPC GTK .dylib's co-exist on an Intel Mac?

Thanks for the tips.

running_idiot

  • New Member
  • *
  • Posts: 11
lazarus wont run
« Reply #6 on: November 10, 2006, 10:05:05 pm »
yes, i had the wrong version of lazarus, because I didnt know that i386=intel and I thought that its the motorola procesor before powerpc ... ok this was my fault :(

but please, write on the daily snapshots site that intel=i386 for these stupid guys like me :) ok i will try to install intel versions of fpc,fpcsrc and lazarus. Hope it will work.

running_idiot

  • New Member
  • *
  • Posts: 11
lazarus wont run
« Reply #7 on: November 11, 2006, 02:50:46 am »
...no, its not working. I didnt uninstall the old version - i didt know how, the ./uninstallLaz.sh wasnt even in the folder - so I "upgraded" everything to intel versions (and i have intel version of fink and gtk is fully working - i tried to instal gimp and its ok). But this is all I get from lazarus...

(http://i15.tinypic.com/2mfyrn5.png)

...and this message:

Quote
kaja-bileks-computer:/usr/local/share/lazarus kajabilek$ ./lazarus
TApplication.IconChanged - TODO: convert this message...no implement
 or win32
[FORMS.PP] ExceptionOccurred
  Sender=EReadError
  Exception=Error reading SplashForm.Left: Unknown property: "Left"
  Stack trace:
  $0007D552
  $0007CD47
  $00073A7E
  $00133956
  $0013379F
  $00019647
  $0001EA22
  $00030E73
TApplication.HandleException Error reading SplashForm.Left: Unknown
eft"
  Stack trace:
  $0007D552
  $0007CD47
  $00073A7E
  $00133956
  $0013379F
  $00019647
  $0001EA22
  $00030E73


Where can be the problem now?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
lazarus wont run
« Reply #8 on: November 11, 2006, 11:01:27 am »
At this moment the fpc 2.1.1 (i.e. the development version) compiler is not stable. See http://www.freepascal.org/mantis/view.php?id=7767 for a bug report about it.

When it is fixed you can try again.

Phil

  • Hero Member
  • *****
  • Posts: 2737
lazarus wont run
« Reply #9 on: November 11, 2006, 06:51:35 pm »
Quote from: "Vincent"
At this moment the fpc 2.1.1 (i.e. the development version) compiler is not stable. See http://www.freepascal.org/mantis/view.php?id=7767 for a bug report about it.

When it is fixed you can try again.


Is there an earlier fpc 2.1.1 snapshot that could be posted in the meantime so they have something to work with for now?

I would hate to see enthusiastic new Mac users of Lazarus who have been willing to go through all the hoops of getting fink and GTK installed being turned off by the lack of a working compiler!

Thanks.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
lazarus wont run
« Reply #10 on: November 11, 2006, 07:22:17 pm »
My first response was no. These are development snapshot, automated to give me the least amount of work. There is already enough to do for Lazarus.

Then I started to look in the directory were I keep the dmg's of last two weeks and I found these:
Code: [Select]
fpc-2.1.1-20061028-i386-macosx.dmg
fpc-2.1.1-20061030-i386-macosx.dmg
fpc-2.1.1-20061102-i386-macosx.dmg
fpc-2.1.1-20061103-i386-macosx.dmg
fpc-2.1.1-20061104-i386-macosx.dmg
fpc-2.1.1-20061106-i386-macosx.dmg
fpc-2.1.1-20061107-i386-macosx.dmg
fpc-2.1.1-20061108-i386-macosx.dmg
fpcsrc-2.1.1-20061028-i386-macosx.dmg
fpcsrc-2.1.1-20061030-i386-macosx.dmg
fpcsrc-2.1.1-20061102-i386-macosx.dmg
fpcsrc-2.1.1-20061103-i386-macosx.dmg
fpcsrc-2.1.1-20061104-i386-macosx.dmg
fpcsrc-2.1.1-20061106-i386-macosx.dmg
fpcsrc-2.1.1-20061107-i386-macosx.dmg
fpcsrc-2.1.1-20061108-i386-macosx.dmg
lazarus-0.9.19-20061028-i386-macosx.dmg
lazarus-0.9.19-20061030-i386-macosx.dmg
lazarus-0.9.19-20061102-i386-macosx.dmg
lazarus-0.9.19-20061103-i386-macosx.dmg
lazarus-0.9.19-20061104-i386-macosx.dmg
lazarus-0.9.21-20061106-i386-macosx.dmg
lazarus-0.9.21-20061107-i386-macosx.dmg
lazarus-0.9.21-20061108-i386-macosx.dmg


From which date do you want to try?

running_idiot

  • New Member
  • *
  • Posts: 11
lazarus wont run
« Reply #11 on: November 11, 2006, 08:38:37 pm »
Quote
....enthusiastic new Mac users of Lazarus who have been willing to go through all the hoops of getting fink and GTK installed being turned off by the lack of a working compiler!


ok, its possibly me :) i have to say Lazarus installation is more linux-like than mac os-like, but thats logical. I would really like to run the Delphi aplications without parallels...

Quote
From which date do you want to try?


From any date, but it has to work :)

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
lazarus wont run
« Reply #12 on: November 11, 2006, 08:49:30 pm »
Maybe Phil knows. I don't know which one works, maybe they are all broken in some way.

Phil

  • Hero Member
  • *****
  • Posts: 2737
lazarus wont run
« Reply #13 on: November 11, 2006, 09:34:53 pm »
Quote from: "Vincent"
Maybe Phil knows. I don't know which one works, maybe they are all broken in some way.


I'm sorry, I don't know. I don't have an Intel Mac so I use the PowerPC version of Laz (20061024).

It sounds like ovidius is successfully using a 2.1.1 version for Intel.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
lazarus wont run
« Reply #14 on: November 12, 2006, 02:29:59 am »
Quote from: "Vincent"
Maybe Phil knows. I don't know which one works, maybe they are all broken in some way.


Luckly there is a way to find out. Acording to this wiki page:

http://www.freepascal.org/wiki/index.php/Tested_Unstable_Revisions

Revisions 5080 and 5191 should be good tries.

Then we can use ViewCVS:

http://www.freepascal.org/cgi-bin/viewcvs.cgi?view=rev&rev=5191

And 5191 is from 2 November. 5080 is from 29 / 10

So I would advise trying 2 November and/or 28 October (there is no snapshot for 29).

 

TinyPortal © 2005-2018