Skip to content

Instantly share code, notes, and snippets.

@frederickjh
Forked from eugenesvk/fish_shell_local_install.sh
Last active November 15, 2019 00:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frederickjh/dfb14e9b88fb44c996fe to your computer and use it in GitHub Desktop.
Save frederickjh/dfb14e9b88fb44c996fe to your computer and use it in GitHub Desktop.
Installs Fish Shell without root access
#! /bin/bash
# Bash script for installing Fish Shell on systems without root access
# Fish Shell will be installed in $HOME/local/bin
# It's assumed that wget and a C/C++ compiler are installed
set -e # exit on error
FISH_VER=2.2.0
mkdir -p $HOME/local $HOME/fish_shell_tmp # create our directories
cd $HOME/fish_shell_tmp
wget http://fishshell.com/files/${FISH_VER}/fish-${FISH_VER}.tar.gz # download source files for Fish Shell
# extract files, configure, and compile
tar xvzf fish-${FISH_VER}.tar.gz
cd fish-${FISH_VER}
./configure --prefix=$HOME/local --disable-shared
make
make install
@frederickjh
Copy link
Author

Ran into error with missing curses development package.

configure: error: Could not find a curses implementation, needed to build fish. 
If this is Linux, try running 'sudo apt-get install libncurses5-dev' or 'sudo yum install ncurses-devel'

@brainfo
Copy link

brainfo commented Aug 16, 2018

same question
configure: error: Could not find a curses implementation, needed to build fish. If this is Linux, try running 'sudo apt-get install libncurses5-dev' or 'sudo yum install ncurses-devel'
how to fix this?

@harsh183
Copy link

I'm getting a 404 when I try to get it from fish shell website.

--2019-11-14 18:16:29--  http://fishshell.com/files/2.2.0/fish-2.2.0.tar.gz
Resolving fishshell.com (fishshell.com)... 185.199.111.153, 185.199.110.153, 185.199.109.153, ...
Connecting to fishshell.com (fishshell.com)|185.199.111.153|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-11-14 18:16:29 ERROR 404: Not Found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment