From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ravi Newsgroups: gmane.emacs.help Subject: Re: Filename auto complete doesn't work in tramp mode Date: Thu, 23 May 2013 19:53:34 +0530 Message-ID: References: <87sj1gsr88.fsf@gmx.de> <519B2A48.1010201@mousecar.com> <87sj1f9zbx.fsf@gmx.de> <87mwrlc0h1.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1369319065 21391 80.91.229.3 (23 May 2013 14:24:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 May 2013 14:24:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 23 16:24:24 2013 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 1UfWRL-0000xR-AA for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 16:24:23 +0200 Original-Received: from localhost ([::1]:43176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfWRK-0001o9-Fb for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 10:24:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfWQx-0001VE-4N for help-gnu-emacs@gnu.org; Thu, 23 May 2013 10:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfWQs-0002dO-Qk for help-gnu-emacs@gnu.org; Thu, 23 May 2013 10:23:59 -0400 Original-Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:40658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfWQs-0002d7-K1 for help-gnu-emacs@gnu.org; Thu, 23 May 2013 10:23:54 -0400 Original-Received: by mail-ob0-f177.google.com with SMTP id wn6so3894626obc.8 for ; Thu, 23 May 2013 07:23:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=5NHuEbtkri3THkyGdwmyL7PANZ54Xbrg76NtVt5Bk8Q=; b=YRTeCuqz2aU9n7i2wSrpn5wbWvQEEYC9pMvPkq8a+Yncw59ud33bzPFebuR393WlD0 zwZKHFy1NLGtbpAW4kwPrCN+TOutYWx0bWYBpPz8zjiWLvTwv9LlKWzDnEo/QANDaysM HsUw4Iyr4bBFr9EW3y5W4jowEz8Dzj1VgYqNPiSoplowxHmExNU/GyFdS4hOP7fq5jm3 hZdABgocr7465DfvviRCvxaMJ+o7HHDS1T8FpLYyrgwI9naPllziM5hz80rQ/21pTBNL uT6AGOMY7UiI6Z+tOr3GZDCWLgf/a7gweI5cTLb3igKv0F1Vd8v0qym+QhymwYKqpJlC NCTQ== X-Received: by 10.60.133.240 with SMTP id pf16mr8672332oeb.28.1369319034092; Thu, 23 May 2013 07:23:54 -0700 (PDT) Original-Received: by 10.76.168.102 with HTTP; Thu, 23 May 2013 07:23:34 -0700 (PDT) In-Reply-To: <87mwrlc0h1.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::231 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:90999 Archived-At: > Hi Ravi, > =E2=80=8BHi Michael,=E2=80=8B > Thanks for this. In fact, "M-x base64-decode-region" in an Emacs buffer > is sufficient :-) > =E2=80=8BGee! Emacs rocks ! > Well, it looks like there is a Perl problem on your remote host. Tramp > checks for Perl versions, but it might not be good enough in your case. > > What happens, if you call the following in a remote shell on that host: > > --8<---------------cut here---------------start------------->8--- > which \perl5 > --8<---------------cut here---------------end--------------->8--- > =E2=80=8BI get "/usr/local/bin/perl5=E2=80=8B". But this is broken, because= of a missing library: $ ldd /usr/local/redhat/packages/local/bin/perl5.00503 linux-gate.so.1 =3D> (0xffffe000) libnsl.so.1 =3D> /lib/libnsl.so.1 (0x00bf1000) libdb.so.3 =3D> not found libgdbm.so.2 =3D> /usr/lib/libgdbm.so.2 (0xf7eb1000) libdl.so.2 =3D> /lib/libdl.so.2 (0x00810000) libm.so.6 =3D> /lib/libm.so.6 (0x00833000) libc.so.6 =3D> /lib/libc.so.6 (0x006b4000) libcrypt.so.1 =3D> /lib/libcrypt.so.1 (0xf7e7e000) /lib/ld-linux.so.2 (0x00691000) =E2=80=8BAnd it will error out as: "error while loading shared libraries: libdb.so.3: cannot open shared object file: No such file or directory"=E2=80=8B > And if it looks trustworthy, please call the following in the remote > shell: > > --8<---------------cut here---------------start------------->8--- > =E2=80=8B=E2=80=8B > \perl > =E2=80=8B5=E2=80=8B > -e 'sub case { > my $str =3D shift; > if ($ARGV[2]) { > return lc($str); > } > else { > return $str; > } > } > opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n"); > @files =3D readdir(d); closedir(d); > foreach $f (@files) { > if (case(substr($f, 0, length($ARGV[1]))) eq case($ARGV[1])) { > if (-d "$ARGV[0]/$f") { > print "$f/\n"; > } > else { > print "$f\n"; > } > } > } > print "ok\n" > ' /home/ '' 0 > --8<---------------cut here---------------end--------------->8--- > =E2=80=8BIf I run the snippet with perl5 replaced with perl it will run fin= e with following output: ./ ../ username/ ok =E2=80=8B =E2=80=8BYeah! now we know Perl package is the problem. What I have to do s= o that tram uses "perl" instead of "perl5". You really helped in pinpointing the issue with great precision! Best regards, Michael. > =E2=80=8BThanks and Regards, Ravi=E2=80=8B