osx install fail

erik flister erik.flister at gmail.com
Fri Jul 24 05:06:43 EDT 2009


> The first time it runs Leksah indexes all your source so it can take some
> time (even if it is only looking in .hi files).  It can take some time.

i don't currently have the library source (my ghc install is from
earlier, and was cleaned -- do you know of a way to 'unclean' to get
the source back in the right place w/o rebuilding, which takes forever
iirc?).

>  Unfortunately it currently writes progress and errors to the console. Can
> you please try again, but launch Leksah from a terminal window with...
> /Applications/Leksah.app/Contents/MacOS/Leksah

it is looking for the Applications directory in ~ (which is where i
ran from) rather than root.

erik-flisters-macbook-pro:~ eflister$
/Applications/Leksah.app/Contents/MacOS/Leksah
/Applications/Leksah.app/Contents/MacOS/Leksah: line 68:
/Users/eflister//Applications/Leksah.app/Contents/MacOS/Leksah-bin: No
such file or directory
/Applications/Leksah.app/Contents/MacOS/Leksah: line 68: exec:
/Users/eflister//Applications/Leksah.app/Contents/MacOS/Leksah-bin:
cannot execute: No such file or directory
erik-flisters-macbook-pro:~ eflister$ cd
/Applications/Leksah.app/Contents/MacOS/
erik-flisters-macbook-pro:MacOS eflister$ ls -al
total 42400
drwxr-xr-x  4 eflister  admin       136 Jul 22 17:28 .
drwxr-xr-x  6 eflister  admin       204 Jul 22 17:28 ..
-rwxr-xr-x  1 eflister  admin      1905 Jul 22 17:28 Leksah
-rwxr-xr-x  1 eflister  admin  21701024 Jul 22 17:28 Leksah-bin

i think this is coming from the following lines in the Leksah script

    14	tmp="`pwd`/$0"
    15	tmp=`dirname "$tmp"`
    16	tmp=`dirname "$tmp"`
    17	bundle=`dirname "$tmp"`
    18	bundle_contents="$bundle"/Contents
...
    68	$EXEC "$bundle_contents/MacOS/$name-bin" $* $EXTRA_ARGS

indeed, if i run from ~/Desktop, i get
erik-flisters-macbook-pro:~ eflister$ cd Desktop/
erik-flisters-macbook-pro:Desktop eflister$
/Applications/Leksah.app/Contents/MacOS/Leksah
/Applications/Leksah.app/Contents/MacOS/Leksah: line 68:
/Users/eflister/Desktop//Applications/Leksah.app/Contents/MacOS/Leksah-bin:
No such file or directory
/Applications/Leksah.app/Contents/MacOS/Leksah: line 68: exec:
/Users/eflister/Desktop//Applications/Leksah.app/Contents/MacOS/Leksah-bin:
cannot execute: No such file or directory

if i try to run Leksah-bin directly, i get
erik-flisters-macbook-pro:MacOS eflister$ ./Leksah-bin
dyld: Library not loaded:
/Users/hamish/gtk/inst/lib/libigemacintegration.0.dylib
  Referenced from: /Applications/Leksah.app/Contents/MacOS/./Leksah-bin
  Reason: image not found
Trace/BPT trap


but if i run from root it launches!  here's the result of some playing around:

(process:687): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
Now updating metadata ...
Metadata collector has nothing to do
Now loading metadata ...
Finished loading ...
File does not exist /home/jutaro/Develop/leksah/data/welcome.txt

(Leksah-bin:687): Gtk-WARNING **: Unable to find default local
directory monitor type

(Leksah-bin:687): Gtk-WARNING **: Unable to find default local
directory monitor type

(Leksah-bin:687): Gtk-WARNING **: Unable to find default local
directory monitor type

(Leksah-bin:687): Gtk-WARNING **: Unable to find default local
directory monitor type

(Leksah-bin:687): Gtk-WARNING **: Unable to find default local
directory monitor type

(Leksah-bin:687): Gtk-WARNING **: Unable to find default local
directory monitor type

(Leksah-bin:687): Gtk-WARNING **: Unable to find default local
directory monitor type

(Leksah-bin:687): Gtk-WARNING **: Unable to find default local
directory monitor type
no infos

(Leksah-bin:687): Gtk-WARNING **: Unable to find default local
directory monitor type

(Leksah-bin:687): Gtk-WARNING **: Unable to find default local
directory monitor type

(Leksah-bin:687): Gtk-CRITICAL **: gtk_container_remove: assertion
`GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET
(container)' failed

(Leksah-bin:687): Gtk-CRITICAL **: gtk_box_pack: assertion
`child->parent == NULL' failed

(Leksah-bin:687): Gtk-CRITICAL **: gtk_container_remove: assertion
`GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET
(container)' failed

(Leksah-bin:687): Gtk-CRITICAL **: gtk_box_pack: assertion
`child->parent == NULL' failed
Now saving session


> Do you think gtk2hs might be built against the x11 variant of GTK?  Can you
> try rebuilding that with the quartz variant active?

building cairo, gtk2, and gtk2hs with +quartz and +no_x11 deactivates
libgtk-x11 in favor of libgtk-quartz. gtksourceview2 also has to be
rebuilt or else you get:

dyld: Library not loaded: /opt/local/lib/libgtk-x11-2.0.0.dylib
  Referenced from: /opt/local/lib/libgtksourceview-2.0.0.dylib
  Reason: image not found
Trace/BPT trap

but once that is fixed, it works!  here's some playing around:


erik-flisters-macbook-pro:leksah-0.6.1 eflister$ leksah

(leksah:57483): Gtk-WARNING **:
dlopen(/opt/local/lib/gtk-2.0/2.10.0/engines/libclearlooks.so, 1):
Library not loaded: /opt/local/lib/libgtk-x11-2.0.0.dylib
  Referenced from: /opt/local/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
  Reason: image not found
Now updating metadata ...
Metadata collector has nothing to do
Now loading metadata ...
Finished loading ...

(leksah:57483): Gtk-CRITICAL **: gtk_container_remove: assertion
`GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET
(container)' failed

(leksah:57483): Gtk-CRITICAL **: gtk_box_pack: assertion
`child->parent == NULL' failed

(leksah:57483): Gtk-CRITICAL **: gtk_container_remove: assertion
`GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET
(container)' failed

(leksah:57483): Gtk-CRITICAL **: gtk_box_pack: assertion
`child->parent == NULL' failed


(leksah:57514): GVFS-RemoteVolumeMonitor-WARNING **: cannot open
directory /opt/local/share/gvfs/remote-volume-monitors: Error opening
directory '/opt/local/share/gvfs/remote-volume-monitors': No such file
or directory

(leksah:57514): Gtk-WARNING **: Unable to find default local directory
monitor type

(leksah:57514): Gtk-WARNING **: Unable to find default local directory
monitor type

(leksah:57514): Gtk-WARNING **: Could not find the icon
'application-pdf'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
	http://icon-theme.freedesktop.org/releases

(leksah:57514): Gtk-WARNING **: Unable to find default local directory
monitor type

(leksah:57514): Gtk-WARNING **: Unable to find default local directory
monitor type

(leksah:57514): Gtk-WARNING **: Unable to find default local directory
monitor type

(leksah:57514): Gtk-WARNING **: Unable to find default local directory
monitor type

(leksah:57514): Gtk-WARNING **: Unable to find default local directory
monitor type
Now saving session




-e



More information about the Leksah mailing list