File: INSTALL

package info (click to toggle)
ruby-netcdf 0.7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,208 kB
  • sloc: ansic: 4,058; ruby: 1,743; makefile: 14; csh: 6
file content (62 lines) | stat: -rw-r--r-- 1,912 bytes parent folder | download | duplicates (4)
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
Installation 

0. The following must have been installed in advance.

  * Ruby, of course <http://www.ruby-lang.org/en/download.html>.

  * NArray: a multi-dimensional numeric array class for Ruby. 
    <http://www.ruby-lang.org/en/raa-list.rhtml?name=NArray>


  * NetCDF ver 3. <http://www.unidata.ucar.edu/packages/netcdf/>
    (Fortran and C++ interfaces are not needed, so you
    can ignore it if their installation does not succeed.)

  * (OPTIONAL) NArrayMiss, which is require to use
    NetCDFVar#get_with_miss etc by 

      require 'numru/netcdf_miss'
 
    NArrayMiss does not have to be installed in advance.

1. Change to the top directory such as by:

      % cd ruby-netcdf-0.5.3

    Here, "%" is a "prompt". Do not type it.
    The directory name depends on the version of RubyNetCDF

2. Configure your setting to create Makefile.

      % ruby extconf.rb           

    NOTE: By default, the two headers narray.h and narray_config.h
    in the narraypackage are assumed to have been copied to
    $(sitearchdir), which is normally 
    /usr/local/lib/ruby/site_ruby/1.6/$(arch)/ if you are using Unix,
    where $(arch) is something like sparc-solaris2.6, a combination of
    CPU and OS. To specify the directory that contains these files
    explicitly, use instead the following:

      % ruby extconf.rb --with-narray-include=/narraydir/include

    Similarly, you can specify the directory you installed netcdf
    with the following:

      % ruby extconf.rb --with-netcdf-include=/netcdfdir/include \
                        --with-netcdf-include=/netcdfdir/lib
    or 

      % ruby extconf.rb --with-netcdf-dir=/netcdfdir

3. Compile source codes and create a shared library.

      % make                      

4. Optionally, you can run a test program by the following:

      % make test

5. Installs it into your site-specific library path for Ruby.

      % make site-install