unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ravi <ra.ravi.rav@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Filename auto complete doesn't work in tramp mode
Date: Thu, 23 May 2013 19:53:34 +0530	[thread overview]
Message-ID: <CAFQs6Pdh09zQN49DPPRQHea1radnaH1w8p0Fu-ViO-RAY6uBOQ@mail.gmail.com> (raw)
In-Reply-To: <87mwrlc0h1.fsf@gmx.de>

> Hi Ravi,
>
​Hi Michael,​



> Thanks for this. In fact, "M-x base64-decode-region" in an Emacs buffer
> is sufficient :-)
>
​Gee! 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---
>

​I get "/usr/local/bin/perl5​". But this is broken, because of a missing
library:

$ ldd /usr/local/redhat/packages/local/bin/perl5.00503
        linux-gate.so.1 =>  (0xffffe000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x00bf1000)
        libdb.so.3 => not found
        libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0xf7eb1000)
        libdl.so.2 => /lib/libdl.so.2 (0x00810000)
        libm.so.6 => /lib/libm.so.6 (0x00833000)
        libc.so.6 => /lib/libc.so.6 (0x006b4000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xf7e7e000)
        /lib/ld-linux.so.2 (0x00691000)

​And it will error out as:

"error while loading shared libraries: libdb.so.3: cannot open shared
object file: No such file or directory"​



> And if it looks trustworthy, please call the following in the remote
> shell:
>
> --8<---------------cut here---------------start------------->8---
> ​​
> \perl
> ​5​
> -e 'sub case {
>  my $str = shift;
>  if ($ARGV[2]) {
>   return lc($str);
>  }
>  else {
>   return $str;
>  }
> }
> opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n");
> @files = 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---
>

​If I run the snippet with perl5 replaced with perl it will run fine with
following output:

./
../
username/
ok
​
​Yeah! now we know Perl package is the problem. What I have to do so that
tram uses "perl" instead of "perl5". You really helped in pinpointing the
issue with great precision!

Best regards, Michael.
>

​Thanks and Regards,
Ravi​


  reply	other threads:[~2013-05-23 14:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21  6:27 Filename auto complete doesn't work in tramp mode Ravi
2013-05-21  7:54 ` Michael Albinus
2013-05-21  8:03   ` ken
2013-05-22  6:35     ` Ravi
2013-05-22  8:46       ` Michael Albinus
2013-05-23 12:21         ` Ravi
2013-05-23 13:03           ` Michael Albinus
2013-05-23 14:23             ` Ravi [this message]
2013-05-24  7:17               ` Michael Albinus
2013-05-24 13:22                 ` Ravi
2013-05-22  6:34   ` Ravi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFQs6Pdh09zQN49DPPRQHea1radnaH1w8p0Fu-ViO-RAY6uBOQ@mail.gmail.com \
    --to=ra.ravi.rav@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).