From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rocky Bernstein Newsgroups: gmane.emacs.help Subject: Re: debugging bash script in emacs using bashdb Date: Fri, 15 Jun 2012 17:18:34 -0400 Message-ID: References: <31959141.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8ff1bff6d9a4e204c2895b83 X-Trace: dough.gmane.org 1339813075 14899 80.91.229.3 (16 Jun 2012 02:17:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2012 02:17:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, gnu.emacs.help@googlegroups.com To: zackp Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 16 04:17:53 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SfiaG-0006PM-A0 for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Jun 2012 04:17:52 +0200 Original-Received: from localhost ([::1]:41245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfiaG-0004ie-7P for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jun 2012 22:17:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sfdui-0007hF-0m for help-gnu-emacs@gnu.org; Fri, 15 Jun 2012 17:18:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sfduf-0001Lq-QB for help-gnu-emacs@gnu.org; Fri, 15 Jun 2012 17:18:39 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:52252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sfduf-0001Lf-ES for help-gnu-emacs@gnu.org; Fri, 15 Jun 2012 17:18:37 -0400 Original-Received: by pbbrp2 with SMTP id rp2so6298755pbb.0 for ; Fri, 15 Jun 2012 14:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=2LBfy4HM4HjxImeVqmlXGDQmjE2UXmeoXgWQnS5YsRo=; b=HNEnRToDW6tTv4WYoJ6x4SyCjsz2v3fI8f1ftNxAiw2/WcDaSSzIM+fGiZaRnGHLDt aal1DSP0tVZeUdHELB3cEDL2gEMFUcZlqyK7lSnGfhj4yxUHhNSoqJtSPtKdGYVmThEE tlWhlsVr98y7HttOmyPoD65rT0o8uXf5LqIpXSlYYmVdoZQX8sRapa3WLZLhi0q89rYn 0QOdmsZk3DXOUtAxrmfDLODgysudfTvVmtFumbtvx9ImHHIPikNgzISY0yZCjjVKtD5F IMZCxvpgr20dhoqwsTmFM9LQYU2XsOKskRfB5//OOdW09eNinUC2i5LryN/qQBtALX9a wP6g== Original-Received: by 10.68.190.97 with SMTP id gp1mr24651030pbc.76.1339795114140; Fri, 15 Jun 2012 14:18:34 -0700 (PDT) Original-Received: by 10.143.60.13 with HTTP; Fri, 15 Jun 2012 14:18:34 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 7qqqYdDNwsLjUZ711bQMJhsbv6I X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 X-Mailman-Approved-At: Fri, 15 Jun 2012 22:17:43 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85262 Archived-At: --e89a8ff1bff6d9a4e204c2895b83 Content-Type: text/plain; charset=ISO-8859-1 I have updated that install script to also install test-simple now. I'm sorry for the breakage. The longer story is that I've been converting tests that validate emacs-dbgr to use a much simpler test framework. I'm in the middle of converting the tests. As I rarely get feedback on emacs-dbgr I tend to lose site that anyone other than myself might be installing it for the first time. By the way, I think test-simple is cool. My epiphany on this came from a little talk I gave http://rocky.github.com/NYC-Lisp-Elisp-talk where I realized that needed too many slide to describe how to write tests. On Fri, Jun 15, 2012 at 3:49 PM, zackp wrote: > Hi, > > I just tried to install the dbgr package again using the following bash > script posted on git hub: > > #!/bin/bash > for pkg in emacs-{test-unit,load-relative,loc-changes,dbgr} ; do > echo Trying to install ${pkg}... > git clone http://github.com/rocky/${pkg}.git > (cd $pkg && \ > sh ./autogen.sh && ./configure && make && make check && sudo make > install > ) > done > > At the end, I got: > > make -C ../../test check > make[3]: Entering directory `/root/emacs-dbgr/test' > (cd ../test && /usr/bin/emacs --batch --no-site-file --no-splash --load > test-bp.el) > Cannot open load file: test-simple > make[3]: *** [test-bp.run] Error 255 > make[3]: Leaving directory `/root/emacs-dbgr/test' > make[2]: *** [check] Error 2 > make[2]: Leaving directory `/root/emacs-dbgr/dbgr/debugger' > make[1]: *** [check-recursive] Error 1 > make[1]: Leaving directory `/root/emacs-dbgr/dbgr' > make: *** [check-recursive] Error 1 > > > > say but I just tells me "cannot open load file". > > > > > > Can anybody tell me how I debug bash scripts using emacs? > > > either with the emacs-dbgr library or anything else > > > > > > I think I found the problem (which was introduced recently) and it > should be > > fixed now. So try again. Thanks. > > I am using GNU Emacs 23.2.1 in Ubuntu 11.04 64bit. > > root@nb1:~# emacs --version > GNU Emacs 23.2.1 > Copyright (C) 2010 Free Software Foundation, Inc. > GNU Emacs comes with ABSOLUTELY NO WARRANTY. > You may redistribute copies of Emacs > under the terms of the GNU General Public License. > For more information about these matters, see the file named COPYING. > > In emacs, as myself (regular user, not 'root'), I also encountered the > "cannot open load file" error too. > > I would appreciate any help. > > Regards, > > Zack > --e89a8ff1bff6d9a4e204c2895b83 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I have updated that install script to also install test-simple now.=A0 I= 9;m sorry for the breakage.=A0

The longer story is that I've be= en converting tests that validate emacs-dbgr to use a much simpler test fra= mework. I'm in the middle of converting the tests. As I rarely get feed= back on emacs-dbgr I tend to lose site that anyone other than myself might = be installing it for the first time.

By the way, I think test-simple is cool. My epiphany on this came from = a little talk I gave http://rocky.github.com/NYC-Lisp-Elisp-talk where I realized that nee= ded too many slide to describe how to write tests.

On Fri, Jun 15, 2012 at 3:49 PM, zackp <zack.perry@sbcglobal.net> wrote:
Hi,

I just tried to install the dbgr package again using the following bash scr= ipt posted on git hub:

#!/bin/bash
for pkg in emacs-{test-unit,load-relative,loc-changes,dbgr} ; do
=A0 =A0 echo Trying to install ${pkg}...
=A0 =A0 git clone http://github.com/rocky/${pkg}.git
=A0 =A0 (cd $pkg && \
=A0 =A0 =A0 =A0 sh ./autogen.sh && ./configure && make &am= p;& make check && sudo make install
=A0 =A0 )
done

At the end, I got:

make -C ../../test check
make[3]: Entering directory `/root/emacs-dbgr/test'
(cd ../test && /usr/bin/emacs --batch --no-site-file --no-splash --= load test-bp.el)
Cannot open load file: test-simple
make[3]: *** [test-bp.run] Error 255
make[3]: Leaving directory `/root/emacs-dbgr/test'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/root/emacs-dbgr/dbgr/debugger'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/root/emacs-dbgr/dbgr'
make: *** [check-recursive] Error 1

> > say but I just tells me "cannot open load file".
> >
> > Can anybody tell me how I debug bash scripts using emacs?
> > either with the emacs-dbgr library or anything else
>
>
> I think I found the problem (which was introduced recently) and it sho= uld be
> fixed now. So try again. Thanks.

I am using GNU Emacs 23.2.1 in Ubuntu 11.04 64bit.

root@nb1:~# emacs --version
GNU Emacs 23.2.1
Copyright (C) 2010 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

In emacs, as myself (regular user, not 'root'), I also encountered = the "cannot open load file" error too.

I would appreciate any help.

Regards,

Zack

--e89a8ff1bff6d9a4e204c2895b83--