From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: Re: Can not work with libguile-2.0 Date: Fri, 18 Feb 2011 09:34:25 +0100 Message-ID: References: <1e640654.925f.12e338022b5.Coremail.lispor@163.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1298017775 24218 80.91.229.12 (18 Feb 2011 08:29:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Feb 2011 08:29:35 +0000 (UTC) Cc: Guile bug , Haible , Bruno To: Fu-Gangqiang Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Feb 18 09:29:30 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PqLiU-00073C-O9 for guile-bugs@m.gmane.org; Fri, 18 Feb 2011 09:29:30 +0100 Original-Received: from localhost ([127.0.0.1]:41476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqLiU-0000dq-82 for guile-bugs@m.gmane.org; Fri, 18 Feb 2011 03:29:30 -0500 Original-Received: from [140.186.70.92] (port=58704 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqLiM-0000dh-MC for bug-guile@gnu.org; Fri, 18 Feb 2011 03:29:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PqLiL-0008WM-HV for bug-guile@gnu.org; Fri, 18 Feb 2011 03:29:22 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:57274 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PqLiL-0008WH-E1 for bug-guile@gnu.org; Fri, 18 Feb 2011 03:29:21 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 56E432C1A; Fri, 18 Feb 2011 03:30:28 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=020T9+xuwHABWnFBFb75DzsMW4o=; b=uT84ho 0i5L51Mu5Ecgxax6ELVJigLIxUgzCvHiAgcvjfJs8Fe2TP/Lq6P5qRU3Fwy1TWTg b96fmU+P73wLXVqU005Hvu6Hw+aVsUUtCEsGWwoKHp3kpOp3xyKiX8aEVwcDWyZ0 CMv5w1LgctjRU5sMRP/u5MV8AJAAVI94z1k9E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=vWs0KMmm9vASgBx7yUDhuVh74MZ+ZdMQ aeEvwcmh2TW6UmwrDSh6RVWK0YlWb4tuSygumM0Qw4u2yi0G3QRUjtCO/iyLLEmT vrigx6VZ6fSkulNYvMTS+LbuT4VzmulzTdHZsKBXKVsnnVNp92r1ZYOIcEGCAujg 3U4VtyBNBic= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 231642C19; Fri, 18 Feb 2011 03:30:25 -0500 (EST) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id C48402C18; Fri, 18 Feb 2011 03:30:20 -0500 (EST) In-Reply-To: <1e640654.925f.12e338022b5.Coremail.lispor@163.com> (Fu-Gangqiang's message of "Thu, 17 Feb 2011 20:02:38 +0800 (CST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 5546FC5C-3B39-11E0-991C-AF401E47CF6F-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5181 Archived-At: Hi Mark, Bruno, and Fu-Gangqiang, Fu-Gangqiang writes: > In manual section 2.3(Linking Guile into Programs) > > I follow the example,run it and have something wrong: > ---->cut here<---- > $ gcc -o simple-guile simple-guile.c `pkg-config --cflags --libs guile-2.0` > $ ./simple-guile > ./simple-guile: error while loading shared libraries: libguile-2.0.so.22: cannot open shared object file: No such file or directory Bruno Haible first brought up the issues here: http://lists.gnu.org/archive/html/libtool/2001-11/msg00050.html I don't know of a consensus for the solution, so I'm copying him on the mail here. Bruno, what should we recommend in the manual that users do to link to Guile, and produce an executable that correctly finds libguile when it is run? Thanks in advance, Andy -- http://wingolog.org/