Difficulty installing with MacPort / dyld library not loaded

Help
ghassel
2013-11-16
2013-11-16
  • ghassel

    ghassel - 2013-11-16

    I am trying to install GDL with MacPort on Snow Leopard. I installed the requirements - readline, plplot, gsl, and optional packages using
    sudo port install package
    and everything seemed to install cleanly with no errors. However, when I try to start gdl, I get the message:

    dyld: Library not loaded: /usr/local/lib/libgomp.1.dylib
    Referenced from: /usr/local/bin/gdl
    Reason: image not found
    Trace/BPT trap

    I would appreciate any help or advice with this problem. Many thanks!
    -George

     
  • Alain C.

    Alain C. - 2013-11-16

    without doing it by myself, but fromthe blue boxes in
    http://aramis.obspm.fr/~coulais/IDL_et_GDL/GDLonOSX_10.5.6.html
    I would try (if you are in bash)
    export DYLD_LIBRARY_PATH=/usr/local/lib/:$DYLD_LIBRARY_PATH

    Alain
    PS: on my side, I have trouble compiling plplot on OSX 10.8 :((

     
  • ghassel

    ghassel - 2013-11-16

    Thank you for the suggestion! I tried the instructions on that site, compiling from source, and now I get a new error with make, involving "cairo" :

    Linking C shared module cairo.so
    cd /Users/georgehassel/GDL/plplot-5.9.9/Compilation/drivers && /Users/georgehassel/GDL/cmake-2.8.1/bin/cmake -E cmake_link_script CMakeFiles/cairo.dir/link.txt --verbose=1
    /usr/bin/gcc-4.0 -bundle -headerpad_max_install_names -o cairo.so CMakeFiles/cairo.dir/cairo.c.o ../src/libplplotd.11.0.0.dylib /usr/lib/libm.dylib /opt/local/lib/libpangocairo-1.0.dylib /opt/local/lib/libcairo.dylib /opt/local/lib/libpangoft2-1.0.dylib /opt/local/lib/libpango-1.0.dylib /usr/lib/libm.dylib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libfontconfig.dylib /opt/local/lib/libfreetype.dylib /usr/X11R6/lib/libSM.dylib /usr/X11R6/lib/libICE.dylib /usr/X11R6/lib/libX11.dylib /usr/X11R6/lib/libXext.dylib /usr/lib/libltdl.dylib /usr/lib/libdl.dylib ../lib/csa/libcsirocsa.0.0.1.dylib ../lib/qsastime/libqsastime.0.0.1.dylib /usr/lib/libm.dylib
    ld: warning: in /opt/local/lib/libpangocairo-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in /opt/local/lib/libcairo.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in /opt/local/lib/libpangoft2-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in /opt/local/lib/libpango-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in /opt/local/lib/libgobject-2.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in /opt/local/lib/libglib-2.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in /opt/local/lib/libfontconfig.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: in /opt/local/lib/libfreetype.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    ld: warning: duplicate dylib /usr/lib/libm.dylib
    Undefined symbols:
    "_cairo_destroy", referenced from:
    _end_raster in cairo.c.o
    _plD_tidy_cairo in cairo.c.o
    _plD_tidy_xcairo in cairo.c.o
    "_pango_layout_set_markup", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_cairo_arc", referenced from:
    _arc in cairo.c.o
    "_cairo_pattern_create_linear", referenced from:
    _gradient in cairo.c.o
    "_cairo_get_antialias", referenced from:
    _filled_polygon in cairo.c.o
    "_cairo_set_line_cap", referenced from:
    _set_line_properties in cairo.c.o
    "_cairo_restore", referenced from:
    _plD_line_cairo in cairo.c.o
    _plD_polyline_cairo in cairo.c.o
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    _filled_polygon in cairo.c.o
    _arc in cairo.c.o
    _arc in cairo.c.o
    _blit_to_x in cairo.c.o
    _blit_to_x in cairo.c.o
    "_pango_layout_context_changed", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_pango_layout_get_baseline", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_cairo_get_operator", referenced from:
    _get_mode in cairo.c.o
    "_pango_cairo_show_layout", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_cairo_set_line_width", referenced from:
    _set_current_context in cairo.c.o
    _set_current_context in cairo.c.o
    _filled_polygon in cairo.c.o
    "_cairo_set_source", referenced from:
    _gradient in cairo.c.o
    "_cairo_set_operator", referenced from:
    _set_mode in cairo.c.o
    _set_mode in cairo.c.o
    _set_mode in cairo.c.o
    _blit_to_x in cairo.c.o
    _blit_to_x in cairo.c.o
    "_pango_layout_get_pixel_size", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_cairo_fill_preserve", referenced from:
    _plD_bop_cairo in cairo.c.o
    _filled_polygon in cairo.c.o
    "_pango_cairo_create_layout", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_cairo_transform", referenced from:
    _text_end_cairo in cairo.c.o
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    _proc_str in cairo.c.o
    _rotate_cairo_surface in cairo.c.o
    _rotate_cairo_surface in cairo.c.o
    "_cairo_font_options_destroy", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_cairo_get_line_join", referenced from:
    _get_line_properties in cairo.c.o
    "_cairo_translate", referenced from:
    _arc in cairo.c.o
    "_cairo_matrix_init", referenced from:
    _text_end_cairo in cairo.c.o
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    _proc_str in cairo.c.o
    _rotate_cairo_surface in cairo.c.o
    "_cairo_save", referenced from:
    _plD_line_cairo in cairo.c.o
    _plD_polyline_cairo in cairo.c.o
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    _filled_polygon in cairo.c.o
    _arc in cairo.c.o
    _arc in cairo.c.o
    _blit_to_x in cairo.c.o
    _blit_to_x in cairo.c.o
    "_cairo_rotate", referenced from:
    _arc in cairo.c.o
    "_cairo_set_antialias", referenced from:
    _start_raster in cairo.c.o
    _xcairo_init_cairo in cairo.c.o
    "_cairo_new_path", referenced from:
    _set_clip in cairo.c.o
    "_cairo_show_page", referenced from:
    _plD_eop_cairo in cairo.c.o
    "_cairo_image_surface_create", referenced from:
    _start_raster in cairo.c.o
    _xcairo_init_cairo in cairo.c.o
    "_cairo_line_to", referenced from:
    _plD_line_cairo in cairo.c.o
    _poly_line in cairo.c.o
    _set_clip in cairo.c.o
    _set_clip in cairo.c.o
    _set_clip in cairo.c.o
    _set_clip in cairo.c.o
    _arc in cairo.c.o
    "_pango_layout_get_context", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_cairo_scale", referenced from:
    _arc in cairo.c.o
    "_cairo_set_fill_rule", referenced from:
    _xcairo_init_cairo in cairo.c.o
    _xcairo_init_cairo in cairo.c.o
    "_cairo_set_source_rgba", referenced from:
    _plD_bop_cairo in cairo.c.o
    _plD_bop_cairo in cairo.c.o
    _set_current_context in cairo.c.o
    _filled_polygon in cairo.c.o
    _arc in cairo.c.o
    _xcairo_init_cairo in cairo.c.o
    _blit_to_x in cairo.c.o
    "_cairo_surface_create_similar", referenced from:
    _xcairo_init_cairo in cairo.c.o
    "_cairo_set_source_surface", referenced from:
    _end_raster in cairo.c.o
    _blit_to_x in cairo.c.o
    "_cairo_surface_destroy", referenced from:
    _end_raster in cairo.c.o
    _plD_tidy_cairo in cairo.c.o
    _plD_tidy_xcairo in cairo.c.o
    "_cairo_font_options_set_antialias", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_cairo_paint", referenced from:
    _end_raster in cairo.c.o
    "_cairo_stroke", referenced from:
    _plD_line_cairo in cairo.c.o
    _plD_polyline_cairo in cairo.c.o
    _filled_polygon in cairo.c.o
    _arc in cairo.c.o
    "_cairo_fill", referenced from:
    _plD_bop_cairo in cairo.c.o
    _filled_polygon in cairo.c.o
    _gradient in cairo.c.o
    _arc in cairo.c.o
    _xcairo_init_cairo in cairo.c.o
    _blit_to_x in cairo.c.o
    _blit_to_x in cairo.c.o
    "_cairo_pattern_destroy", referenced from:
    _gradient in cairo.c.o
    "_cairo_set_line_join", referenced from:
    _set_line_properties in cairo.c.o
    "_cairo_move_to", referenced from:
    _plD_line_cairo in cairo.c.o
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    _poly_line in cairo.c.o
    _set_clip in cairo.c.o
    "_cairo_rectangle", referenced from:
    _plD_bop_cairo in cairo.c.o
    _xcairo_init_cairo in cairo.c.o
    _blit_to_x in cairo.c.o
    _blit_to_x in cairo.c.o
    "_g_object_unref", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_pango_cairo_context_set_font_options", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_cairo_clip", referenced from:
    _set_clip in cairo.c.o
    "_cairo_xlib_surface_create", referenced from:
    _xcairo_init_cairo in cairo.c.o
    "_cairo_pattern_reference", referenced from:
    _gradient in cairo.c.o
    "_cairo_pattern_add_color_stop_rgba", referenced from:
    _gradient in cairo.c.o
    "_cairo_create", referenced from:
    _start_raster in cairo.c.o
    _xcairo_init_cairo in cairo.c.o
    _xcairo_init_cairo in cairo.c.o
    _xcairo_init_cairo in cairo.c.o
    "_cairo_font_options_create", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_cairo_rel_move_to", referenced from:
    _text_end_cairo in cairo.c.o
    _proc_str in cairo.c.o
    "_cairo_get_line_cap", referenced from:
    _get_line_properties in cairo.c.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make[2]: [drivers/cairo.so] Error 1
    make[1]:
    [drivers/CMakeFiles/cairo.dir/all] Error 2
    make: *** [all] Error 2

     

Log in to post a comment.