File: README

package info (click to toggle)
slcurl 0.1.1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 624 kB
  • ctags: 151
  • sloc: sh: 2,758; ansic: 1,371; makefile: 173
file content (80 lines) | stat: -rw-r--r-- 2,976 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
This distribution contains code for the S-Lang cURL module.  See the
documentation in the doc/ directory for information about using the
module once it has been installed.

cURL itself is a command-line tool that for transfering files using a
multitude of protocols (FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, ...).
The S-Lang module interfaces with the cURL library allowing access to
such protocols from the S-Lang interpreter.

To build the module, you will need the following additional libraries
installed:

   1.  Version 2 of slang library <http://www.jedsoft.org/slang/>.
       The module will not work with version 1.

   2.  A recent version of the cURL library.  This library is part of
       the cURL distribution, and may be obtained from
       <http://curl.haxx.se/>.  Debian "Sarge" users can install the
       cURL library using
       
          apt-get install libcurl3-dev

You must run the configure script before you can compile the module.
If the slang library is installed in a non-standard location, then you
will need to specify the location of the library as arguments to the
configure script.  For example, suppose libslang.so is located in
/home/bill/lib and its include file slang.h is located in
/home/bill/include. Then one would run the configure script using:

  ./configure --with-slanglib=/home/bill/lib \
              --with-slanginc=/home/bill/include

or, the shorter form which assumes a common pathname prefix for the
lib and include directories:

  ./configure --with-slang=/home/bill

Similarly, if libcurl.so is not installed in a standard location, then
you will need to use the --with-curlinc and --with-curllib, or
--with-curl options.  For example, if if libcurl.so is in
/opt/soft/lib and curl/curl.h is in /opt/soft/include, then use

   --with-curl=/opt/soft

as an argument to the configure script.  (Note: curl.h will be
installed in a curl subdirectory, i.e., /opt/soft/include/curl/curl.h).

You should also specify a location for the modules (*.so) and any associated
script (*.sl) files created by this package.  The default location for
the modules is in

   $prefix/lib/slang/modules/

Any .sl files will be installed in

   $exec_prefix/share/slsh/local-packages/

where the values of the variable $prefix defaults to /usr/local, and
that of $exec_prefix to the value of $prefix.  These values may be
changed using the --prefix and --exec-prefix configure script
parameters.  For example, to set the value of $prefix to /home/bill,
use

   ./configure --prefix=/home/bill ...

For more help using the configure script, run it using 

   ./configure --help

It is also a good idea to read the INSTALL.txt file located in this
directory.

Once the configure script has been run, you should inspect
the Makefile that it generated in the src directory.  Then building
and installing the library should involve nothing more than:

   make 
   make install

You may have to have root privileges to peform the last step.