Forum > macOS / Mac OS X

Lazarus unable to find an existing Lib

(1/2) > >>

Guest:
Hi.

I just installed Lazarus for Mac (binary package), and

gtk+, gtk-doc, gtk+-data, gtk+-shlibs, gtk-engines, gtkglarea, gdk-pixbuf, gdk-pixbuf-shlibs

with Fink (binary). X11 is OK (gtkpool is running happily!).

When try to launch Lazarus, I just see a flash of the splash window, then nothing more. The crash log state:

Host Name:      host107-166.pool8252.interbusiness.it
Date/Time:      2005-07-27 14:37:29 +0200
OS Version:     10.3.9 (Build 7W98)
Report Version: 2

Command: startlazarus
Path:    /usr/local/share/lazarus/startlazarus
Version: ??? (???)
PID:     5688
Thread:  Unknown

Link (dyld) error:

dyld: /usr/local/share/lazarus/startlazarus can't open library: /sw/lib/libgdk_pixbuf.2.dylib  (No such file or directory, errno = 2)


The problem is that that library do exist!

In /sw/lib I have:

libgdk-1.2.0.9.1.dylib
libgdk-1.2.0.dylib
libgdk.a
libgdk.dylib
libgdk.la
libgdk_imlib.1.9.14.dylib
libgdk_imlib.1.dylib
libgdk_imlib.a
libgdk_imlib.dylib
libgdk_imlib.la
libgdk_pixbuf.2.0.0.dylib
libgdk_pixbuf.2.dylib  <-------------- !!!!
libgdk_pixbuf.a
libgdk_pixbuf.dylib
libgdk_pixbuf.la
libgdk_pixbuf_xlib.2.0.0.dylib
libgdk_pixbuf_xlib.2.dylib
libgdk_pixbuf_xlib.a
libgdk_pixbuf_xlib.dylib
libgdk_pixbuf_xlib.la  

Sombody can give me any suggestion?

Thank
Gianni

Phil H.:

--- Quote from: "Guest" ---
Link (dyld) error:

dyld: /usr/local/share/lazarus/startlazarus can't open library: /sw/lib/libgdk_pixbuf.2.dylib  (No such file or directory, errno = 2)


The problem is that that library do exist!

In /sw/lib I have:

Gianni
--- End quote ---


Gianni,

I installed the 20050728 snapshot tonight and it starts up fine. It looks like for some reason it can't find your /sw/lib.

In general, you should only have to install the 3 .dmg's, then set the PATH to /usr/local/bin, then run Lazarus. Don't follow any of the out-of-date instructions scattered around. You also don't need to make Lazarus, despite what the instructions say.

My problem is that I can't get the Lazarus IDE to compile anything. I can compile fine from the command line, but not in the IDE.

Don't give up. Lazarus (and FPC) is shaping up nicely and appears to be improving with each snapshot.

-Phil

Gianni:

--- Quote from: "Anonymous" ---
--- Quote from: "Guest" ---
Link (dyld) error:

dyld: /usr/local/share/lazarus/startlazarus can't open library: /sw/lib/libgdk_pixbuf.2.dylib  (No such file or directory, errno = 2)


The problem is that that library do exist!

In /sw/lib I have:

Gianni
--- End quote ---


Gianni,

I installed the 20050728 snapshot tonight and it starts up fine. It looks like for some reason it can't find your /sw/lib.

In general, you should only have to install the 3 .dmg's, then set the PATH to /usr/local/bin, then run Lazarus. Don't follow any of the out-of-date instructions scattered around. You also don't need to make Lazarus, despite what the instructions say.

My problem is that I can't get the Lazarus IDE to compile anything. I can compile fine from the command line, but not in the IDE.

Don't give up. Lazarus (and FPC) is shaping up nicely and appears to be improving with each snapshot.

-Phil
--- End quote ---


Thanks, Phil

In the meantime another silly (for me!) thing happened: in my effort to launch this [...] thing, I succeed, but ...

1 - I must launch X-11 by hand
2 - In the X-term window I must type the full command to launch lazarus instead of startlazarus (/usr/local/share/lazarus/lazarus)
     [note 1: the very same path inserted in the Application menu' of X11 won't work
      note 2: if I close Lazarus, and then, for some reason, need to re-launch it, I must quit X-11, then relaunch it and re-write the path]
3 - Some object in the palette won't work (e.g the standard Button) -- better sayd, work only from time to time -- giving an access fault message, with the option to ignore it or to quit the ide.
4 - From time to time, the IDE crash without evident reason
5 - I tried to launch the IDE turning ON the bug tracking, and, also wen all seem work, the terminal window is full of messages complaining about this or that things.

Any clue?

I love Pascal (the only civilized programming language, I think!javascript:emoticon(':)')), and ate to write GUI -- for this very reason I am looking forward for a true RAD on Mac. The problem is that I start programming a lot of years ago, in assembly, when the OSs don't try to protect a programmer from himself, and when you could fetch a byte from an external device without the necessity to write some exoteric, multikbytes kernel driver (well, in ebedded system there was no real OS ...). In my fifty, I am trying to restart programming, but is a lot hard!


Sorry for my bad english, and thanks for your time

Gianni

Phil H.:

--- Quote from: "Gianni" ---
1 - I must launch X-11 by hand
2 - In the X-term window I must type the full command to launch lazarus instead of startlazarus (/usr/local/share/lazarus/lazarus)
     [note 1: the very same path inserted in the Application menu' of X11 won't work
      note 2: if I close Lazarus, and then, for some reason, need to re-launch it, I must quit X-11, then relaunch it and re-write the path]
3 - Some object in the palette won't work (e.g the standard Button) -- better sayd, work only from time to time -- giving an access fault message, with the option to ignore it or to quit the ide.
4 - From time to time, the IDE crash without evident reason
5 - I tried to launch the IDE turning ON the bug tracking, and, also wen all seem work, the terminal window is full of messages complaining about this or that things.

Any clue?

Gianni
--- End quote ---


Gianni,

Lazarus appears to be getting more stable with each passing day. If you can identify the precise conditions that cause the IDE to crash or display an access violation, please log it as a bug.

As a benefit other potential Mac users of Lazarus, here's a quick and dirty review of the basic steps to getting the current Lazarus snapshot installed and running under OS X:

(1) For now, ignore out-of-date installation instructions elsewhere.

(2) Make sure X11 is installed. X11 is optionally installed with OS X and comes on OS X CD's or can be downloaded from Apple.

(3) Download and install the correct version of fink for your version of OS X and let it download and install the additional 29 GTK and related packages needed. Note that instructions elsewhere contained a typo for the fink command. Here's the command that I used (all on one line):

sudo fink install gdk-pixbuf gtk+ gtk+-data gtk+-shlibs gtk-doc-1.2-13 gtkglarea gtk-engines

URL:  http://fink.sourceforge.net/download

(4) Download and install all 3 .dmg files from the Lazarus snapshot page. I doubt if the order of installation matters, but this is the order I installed them:
  - fpc .dmg
  - fpcsrc .dmg
  - lazarus .dmg

URL:  http://www.ca.freepascal.org/Lazarus/

(5) Open X terminal window.

(6) In the X terminal, type:

sh
PATH=$PATH:/usr/local/bin
tcsh
cd /usr/local/share/lazarus
./lazarus

Typing "open lazarus" also works instead of "./lazarus".

(7) I usually "uninstall" everything manually before installing a new snapshot. I don't know that this is really necessary, but it makes me feel better:
- Delete /usr/local/share/lazarus folder
- Delete /usr/local/share/fpcsrc folder
- Delete /usr/local/share/doc/FPC folder
- Delete /usr/local/share/examples/FPC folder
- Delete /usr/local/lib/fpc folder
- Delete FPC programs from usr/local/bin folder. Note that there might be files from other programs in this folder, so be careful about what you delete.
- Empty trash.

Please point out any errors or steps that I might have overlooked.

Thanks.

-Phil

Anonymous:
Sure, I will try (I will be on vacation next week, so I will do some "scuba diving" in Lazarus installation!)

Thanks, Phil

Gianni

Navigation

[0] Message Index

[#] Next page

Go to full version