From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Taylan Ulrich Bayirli/Kammer Newsgroups: gmane.lisp.guile.user Subject: Re: Using guile-ssh Date: Sat, 16 Aug 2014 14:12:01 +0200 Message-ID: <87lhqows4u.fsf@taylan.uni.cx> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408191143 3689 80.91.229.3 (16 Aug 2014 12:12:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2014 12:12:23 +0000 (UTC) Cc: guile-user@gnu.org To: R Sidhu Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Aug 16 14:12:19 2014 Return-path: Envelope-to: guile-user@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 1XIcqG-0003Me-Rz for guile-user@m.gmane.org; Sat, 16 Aug 2014 14:12:17 +0200 Original-Received: from localhost ([::1]:35278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIcqG-0006AT-Cr for guile-user@m.gmane.org; Sat, 16 Aug 2014 08:12:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIcq6-0006AO-LO for guile-user@gnu.org; Sat, 16 Aug 2014 08:12:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIcq5-0007bo-EG for guile-user@gnu.org; Sat, 16 Aug 2014 08:12:06 -0400 Original-Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]:34424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIcq5-0007bi-5S for guile-user@gnu.org; Sat, 16 Aug 2014 08:12:05 -0400 Original-Received: by mail-la0-f49.google.com with SMTP id hz20so3027207lab.8 for ; Sat, 16 Aug 2014 05:12:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=8uMODYjp3wx3RabjLkig5lv1CFvn/CbXWps2IrBTmmA=; b=mEslqHFUafUxQA/DWQhSr3h8P7H8/k3xrrp9Ac3DuscVubU8os3vVBDZjRX7bwRhTZ yCtG2Xn7pjMcmSQ3vmWF/6nxLkt2bcGUQVDdFBNxbKf0AFvGK0GXGQs0q/3t3Z4S5v3Z u+8VnXcobO/yeYyTXzcbZkhCgflEKWcjfdw+UhdGFhmYWIWIJnQlgvf8bD2chaW+QjFB /ZDvd1u9exON1Rs2nwjwmArV/h8024C6BdBU8PBT2ivvFeOihGb13ct/uyTIlIoOYA/d MIHYy28aQt6ZSNsnn9dZwQ6nL2UYdnOLYsWnDXzXcaI+647SWDrN1iE0L7laeBQ6JDjn mU/Q== X-Received: by 10.112.62.132 with SMTP id y4mr1156864lbr.105.1408191123664; Sat, 16 Aug 2014 05:12:03 -0700 (PDT) Original-Received: from taylan.uni.cx (p200300514A44E2380213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a44:e238:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id ao9sm216700lac.28.2014.08.16.05.12.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Aug 2014 05:12:03 -0700 (PDT) In-Reply-To: (R. Sidhu's message of "Fri, 15 Aug 2014 22:14:48 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::231 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11426 Archived-At: R Sidhu writes: > I am interested in using guile-ssh for file transfer. Ran into the > following issues: > > 1. 'git clone > https://github.com/artyom-poptsov/guile-ssh/releases/tag/v0.6.0' fails > with: > fatal: > https://github.com/artyom-poptsov/guile-ssh/releases/tag/v0.6.0/info/refs > not valid: is this a git repository? Tags on GitHub can be downloaded as a .tar.gz or ZIP, but not cloned if I'm not mistaken. > 2. INSTALL file suggests './configure' but its missing Short story: you need to run either ./autogen.sh, or if that doesn't exist, run "autoreconf -fi" in the source directory. Long story: The ./configure script of a software package is what needs to be run on the install-site to configure the package for the machine on which it will be compiled and installed, but this ./configure script is rarely written by hand, because it must be in the Bourne shell language to be highly portable across Unix machines, which is a horrible language. Most commonly, there is a configure.ac file which is written in the more special-purpose and high-level autoconf language, and the software's author runs the autoconf command to turn this into a ./configure script before packaging and shipping the software. Therefore, when you fetch the bare source code of a project, you usually have a configure.ac file but not the ./configure script which it would generate. Often for convenience there is a tiny ./autogen.sh script which runs autoconf and maybe some other things for you (specifically automake), but nowadays usually running "autoreconf -fi" is the only thing that needs to be done. > 3. Installation instructions in doc/ directory (texinfo files) suggest > 'autoreconf -if' which fails with: > configure.ac:55: error: possibly undefined macro: AC_DEFINE > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > autoreconf: /usr/bin/autoconf failed with exit status: 1 I had this problem more than once already but keep forgetting what the solution was. Do you have pkg-config installed? Do you have pkg-config files in non-standard places, like $HOME/usr/lib/pkgconfig, or $HOME/.guix-profile/lib/pkgconfig? If so you'll need to set PKG_CONFIG_PATH to a colon-separated list of such directories. (Best to 'export' that in ~/.profile or ~/.bash_login or so.) Do you have a recent version of GNU m4 installed? > 4. While initial steps seem clear (establishing session, > authenticating and creating channel), not clear how to perform file > transfer. I've never used guile-ssh so this is a shot in the dark: maybe a simple read-char / write-char loop to read and write the bytes in a file one by one? > Appreciate work done on guile-ssh so far. Look forward to help re > above. > > Regards > sidhu1f Hope someone can clear questions 3 and 4. Taylan