File: INSTALL

package info (click to toggle)
ruby-highline 1.6.21-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 676 kB
  • ctags: 497
  • sloc: ruby: 4,805; makefile: 2
file content (55 lines) | stat: -rw-r--r-- 1,752 bytes parent folder | download
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
= Installing HighLine

RubyGems is the preferred easy install method for HighLine.  However, you can
install HighLine manually as described below.

== Installing the Gem

HighLine is intended to be installed via the
RubyGems[http://rubyforge.org/projects/rubygems/] system.  To get the latest
version, simply enter the following into your command prompt:

	$ sudo gem install highline

You must have RubyGems[http://rubyforge.org/projects/rubygems/] installed for
the above to work.

If you want to build the gem locally, make sure you have
Rake[http://rubyforge.org/projects/rake/] installed then run the following
command:

  $ rake package

== Installing Manually

Download the latest version of HighLine from the
{RubyForge project page}[http://rubyforge.org/frs/?group_id=683].  Navigate to
the root project directory and enter:

	$ sudo ruby setup.rb

== Installing HighLine on JRuby

If you are using HighLine on JRuby, many features will not work properly
without a working ncurses installation.  First, ensure that you have
ncurses installed and then install the ffi-ncurses gem.

If ffi-ncurses fails to find your ncurses library, you may need to set the
RUBY_FFI_NCURSES envirionment variable, i.e:

  RUBY_FFI_NCURSES_LIB=ncursesw ruby examples/hello.rb

For details, see the ffi-ncurses documentation at:
http://github.com/seanohalpin/ffi-ncurses

== Using termios

While not a requirement, HighLine will take advantage of the termios library if
installed (on Unix).  This slightly improves HighLine's character reading
capabilities and thus is recommended for all Unix users.

If using the HighLine gem, you should be able to add termios as easily as:

	$ sudo gem install termios

For manual installs, consult the termios documentation.