From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f8dc8a429208e220 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!j9g2000prj.googlegroups.com!not-for-mail From: Alexander Korolev Newsgroups: comp.lang.ada Subject: Re: GNAColl SQLite Binding Installation Problem (Mac, Snow Leopard) Date: Thu, 11 Aug 2011 00:20:19 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8db55ca7-7468-4323-a3a4-f139decd2bdc@j9g2000prj.googlegroups.com> References: NNTP-Posting-Host: 96.49.119.210 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1313047219 709 127.0.0.1 (11 Aug 2011 07:20:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 11 Aug 2011 07:20:19 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j9g2000prj.googlegroups.com; posting-host=96.49.119.210; posting-account=9aAl4woAAACPkuvNJOQxyBXxG_5lfu_0 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUARLECNK X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; ru-ru) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20526 Date: 2011-08-11T00:20:19-07:00 List-Id: On Aug 11, 1:52=A0am, Simon Wright wrote: > Alexander Korolev writes: > > I've installed GNATColl as a part of GNAT GPL 5 up until "make test" > > step. > > What is GNAT GPL 5? I guess you mean GNAT GPL 2011? > > Which version of Mac OS X are you running? > > > > > > > There is no single error on steps > > "configure" > > ./configure --prefix=3D/usr/local/gnatcoll --with-sqlite > > > and "make" > > > make > > > Tried to make a test > > > make test > > > got errors related to libgnatcoll_sqlite.dylib > > > ----- > > ! dyld: Library not loaded: @rpath/libgnatcoll_sqlite.dylib > > ! =A0 Referenced from: /Developer/adacore/AdaCore/GNATcoll/gnatcoll- > > gpl-2011-src/testsuite/../local_install/bin/gnatcoll_db2ada > > ! =A0 Reason: image not found > > > ---- > > I wasn't able to find the file libgnatcoll_sqlite.dylib. =A0Did anybody > > experience the same or similar or have any guess. > > It's in gnatcoll-gpl-2011-src/src/lib/sqlite/relocatable/. > > I don't see why dyld didn't find it at runtime, unless perhaps it's > confused because the .dylib is a symlink (because gnatcoll isn't fully > up to speed with shared libraries on the Mac). But then why would it > work if calling gnatcoll_db2ada in its original built location? > > I'd recommend that you configure for static libraries only > (--disable-shared). NB, all, this is only for Mac users! Thanks Simon. - MacOS version 10.6.5 - GPL 2011 I've implemented your recommendation. It seems to me I can proceed with make install step now. Just want to make all "make" steps clean to avoid consequenses further. AFTER make test -- make prefix=3D/Developer/adacore/AdaCore/GNATcoll/gnatcoll-gpl-2011-src/ local_install install >/dev/null make prefix=3D/Developer/adacore/AdaCore/GNATcoll/gnatcoll-gpl-2011-src/ local_install -C testsuite test -- AFTER make examples make -C examples gnatmake -Pexamples gcc -c -gnat05 -I- -gnatA /Developer/adacore/AdaCore/GNATcoll/gnatcoll- gpl-2011-src/examples/newclass.adb gcc -c -gnat05 -I- -gnatA /Developer/adacore/AdaCore/GNATcoll/gnatcoll- gpl-2011-src/examples/common.adb gcc -c -gnat05 -I- -gnatA /Developer/adacore/AdaCore/GNATcoll/gnatcoll- gpl-2011-src/examples/textconsole.adb gnatbind -I- -x /Developer/adacore/AdaCore/GNATcoll/gnatcoll-gpl-2011- src/examples/obj/newclass.ali gnatlink /Developer/adacore/AdaCore/GNATcoll/gnatcoll-gpl-2011-src/ examples/obj/newclass.ali /usr/local/gnatcoll/lib/gnatcoll/static/ libgnatcoll_python.a /usr/local/gnatcoll/lib/gnatcoll/static/ libgnatcoll.a /usr/local/gnat/lib/gnat_util/static/libgnat_util.a -Wl,- rpath,/usr/local/gnat/lib/gcc/x86_64-apple-darwin10.2.0/4.5.3/adalib/ / System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ config/libpython2.6.a -ldl -lm -o /Developer/adacore/AdaCore/GNATcoll/ gnatcoll-gpl-2011-src/examples/newclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D =3D=3D To run, set the environment variable LD_LIBRARY_PATH =3D=3D LD_LIBRARY_PATH=3D/usr/local/gnatcoll/lib/gnat:$LD_LIBRARY_PATH