Install Ncurses Ncurses devel and Try Again Centos

fish - the friendly interactive shell Build Status

fish is a smart and user-friendly control line vanquish for macOS, Linux, and the rest of the family. fish includes features similar syntax highlighting, autosuggest-as-you-type, and fancy tab completions that just work, with no configuration required.

For more on fish'south design philosophy, see the design certificate.

Quick First

fish generally works like other shells, similar bash or zsh. A few important differences can exist found at https://fishshell.com/docs/current/tutorial.html by searching for the magic phrase "unlike other shells".

Detailed user documentation is available by running help within fish, and besides at https://fishshell.com/docs/current/index.html

Getting fish

macOS

fish can exist installed:

  • using Homebrew: brew install fish
  • using MacPorts: sudo port install fish
  • using the installer from fishshell.com
  • as a standalone app from fishshell.com

Packages for Linux

Packages for Debian, Fedora, openSUSE, and Cherry-red Hat Enterprise Linux/CentOS are available from the openSUSE Build Service.

Packages for Ubuntu are available from the fish PPA, and can exist installed using the post-obit commands:

sudo apt-add-repository ppa:fish-shell/release-iii sudo apt update sudo apt install fish          

Instructions for other distributions may be plant at fishshell.com.

Windows

  • On Windows 10, fish can be installed under the WSL Windows Subsystem for Linux with the instructions for the appropriate distribution listed above nether "Packages for Linux", or from source with the instructions below.
  • Fish can too be installed on all versions of Windows using Cygwin (from the Shells category).

Building from source

If packages are not available for your platform, GPG-signed tarballs are available from fishshell.com and fish-beat out on GitHub. See the Edifice section for instructions.

Running fish

Once installed, run fish from your electric current shell to effort fish out!

Dependencies

Running fish requires:

  • curses or ncurses (preinstalled on most *nix systems)
  • some common *nix arrangement utilities (currently mktemp), in addition to the basic POSIX utilities (cat, cut, dirname, ls, mkdir, mkfifo, rm, sort, tee, tr, uname and sed at least, but the full coreutils plus detect and awk is preferred)
  • The gettext library, if compiled with translation support

The following optional features also have specific requirements:

  • builtin commands that accept the --help selection or print usage messages crave nroff or mandoc for display
  • automated completion generation from transmission pages requires Python 3.five+
  • the fish_config spider web configuration tool requires Python iii.five+ and a web browser
  • organisation clipboard integration (with the default Ctrl-V and Ctrl-10 bindings) require either the xsel, xclip, wl-copy/wl-paste or pbcopy/pbpaste utilities
  • full completions for yarn and npm crave the all-the-package-names NPM module
  • colorls is used, if installed, to add color when running ls on platforms that practice non take color support (such as OpenBSD)

Switching to fish

If you wish to employ fish as your default shell, use the post-obit command:

chsh -due south /usr/local/bin/fish          

chsh will prompt yous for your countersign and change your default shell. (Substitute /usr/local/bin/fish with any path fish was installed to, if it differs.) Log out, then log in again for the changes to have effect.

Apply the following command if fish isn't already added to /etc/shells to let fish to be your login beat out:

echo /usr/local/bin/fish | sudo tee -a /etc/shells          

To switch your default shell back, you can run chsh -south /bin/bash (substituting /bin/fustigate with /bin/tcsh or /bin/zsh equally appropriate).

Building

Dependencies

Compiling fish requires:

  • a C++11 compiler (g++ 4.8 or later, or clang three.three or later)
  • CMake (version 3.5 or later)
  • a curses implementation such equally ncurses (headers and libraries)
  • PCRE2 (headers and libraries) - a copy is included with fish
  • gettext (headers and libraries) - optional, for translation support

Sphinx is also optionally required to build the documentation from a cloned git repository.

Additionally, running the test suite requires Python 3.v+ and the pexpect bundle.

Building from source (all platforms) - Makefile generator

To install into /usr/local, run:

mkdir build;              cd              build cmake .. make sudo make install

The install directory can exist inverse using the -DCMAKE_INSTALL_PREFIX parameter for cmake.

Building from source (macOS) - Xcode

mkdir build;              cd              build cmake .. -Thou Xcode

An Xcode project volition at present be available in the build subdirectory. You lot can open it with Xcode, or run the post-obit to build and install in /usr/local:

xcodebuild xcodebuild -scheme install

The install directory can be changed using the -DCMAKE_INSTALL_PREFIX parameter for cmake.

Build options

In add-on to the normal cmake build options (like CMAKE_INSTALL_PREFIX), fish has some other options bachelor to customize it.

  • BUILD_DOCS=ON|OFF - whether to build the documentation. This is automatically set to OFF when sphinx isn't installed.
  • INSTALL_DOCS=ON|OFF - whether to install the docs. This is automatically set to on when BUILD_DOCS is or prebuilt documentation is available (like when edifice in-tree from a tarball).
  • FISH_USE_SYSTEM_PCRE2=ON|OFF - whether to use an installed pcre2. This is normally autodetected.
  • MAC_CODESIGN_ID=Cord|OFF - the codesign ID to use on Mac, or "OFF" to disable codesigning.
  • WITH_GETTEXT=ON|OFF - whether to build with gettext support for translations.

Notation that fish does not back up static linking and volition attempt to error out if it detects it.

Assistance, it didn't build!

If fish reports that it could not find curses, try installing a curses development bundle and build again.

On Debian or Ubuntu you lot want:

sudo apt install build-essential cmake ncurses-dev libncurses5-dev libpcre2-dev gettext          

On RedHat, CentOS, or Amazon EC2:

sudo yum install ncurses-devel          

Contributing Changes to the Lawmaking

See the Guide for Developers.

Contact U.s.a.

Questions, comments, rants and raves tin be posted to the official fish mailing list at https://lists.sourceforge.net/lists/listinfo/fish-users or join u.s. on our gitter.im channel. Or employ the fish tag on Unix & Linux Stackexchange. There is also a fish tag on Stackoverflow, but it is typically a poor fit.

Constitute a problems? Have an awesome idea? Please open an event.

livengoodthoice.blogspot.com

Source: https://github.com/fish-shell/fish-shell

0 Response to "Install Ncurses Ncurses devel and Try Again Centos"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel