book
  • README
  • cheatsheet
    • bash
      • builtin
      • syntactic sugar
      • cmd
      • havefun
    • text-processing
      • awk
      • sed
      • html
      • json
      • regex
      • unicode
    • osx
    • curl
    • tricky
    • widget
    • proxy
    • colors
    • math
    • media
    • ssl
      • keystore
      • verification
      • server
      • client
      • tricky
    • windows
      • powershell
      • choco
      • wsl
      • wt
      • shortcut
      • clsid
      • env
      • shell:folder
  • vim
    • nvim
    • install
    • color
    • plugins
      • usage
      • other plugins
      • deprecated
    • tricky
    • viml
    • windows
    • troubleshooting
  • devops
    • admin tools
    • ssh
    • git
      • config
      • alias
      • submodule
      • eol
      • example
      • gerrit
        • gerrit API
      • github
      • troubleshooting
      • tricky
      • statistics
    • pre-commit
    • release-tools
    • tmux
      • cheatsheet
    • ansible
    • vault
    • artifactory
      • api
      • cli
      • aql
      • nginx cert
    • klocwork
      • kwadmin
      • kwserver
      • api
      • q&a
    • elk
    • mongodb
    • android
    • mobile
  • jenkins
    • config
      • windows
    • appearance
    • troubleshooting
    • jenkinsfile
      • utility
      • parallel
      • build
      • envvar
      • properties
      • trigger
      • node
    • script
      • job
      • build
      • stage
      • agent
      • security & authorization
      • exception
      • monitor
      • tricky
    • api
      • blueocean
    • cli
    • plugins
      • kubernetes
      • docker
      • shared-libs
      • lockable-resource
      • ansicolor
      • badge
      • groovy-postbuild
      • simple-theme
      • customizable-header
      • artifactory
      • jira-steps
      • job-dsl
      • build-timeline
      • crumbIssuer
      • coverage
      • uno-choice
      • tricky
  • virtualization
    • kubernetes
      • init
        • kubespray
        • kubeadm
          • environment
          • crio v1.30.4
          • docker v1.15.3
          • HA
        • addons
        • etcd
      • kubectl
        • pod
        • deploy
        • replicasets
        • namespace
        • secrets
      • node
      • certificates
      • events
      • kubeconfig
      • kubelet
      • troubleshooting
      • cheatsheet
      • auth
      • api
      • tools
        • monitor
        • helm
        • network
        • minikube
    • docker
      • run & exec
      • voume
      • remove
      • show info
      • dockerfile
      • dockerd
      • tricky
      • troubleshooting
      • windows
    • crio
    • podman
  • ai
    • prompt
  • osx
    • apps
      • init
      • brew
    • defaults
    • system
    • network
    • script
    • tricky
  • linux
    • devenv
    • util
      • time & date
      • output formatting
      • params
      • tricky
    • nutshell
    • disk
    • network
    • troubleshooting
    • system
      • apt/yum/snap
      • authorization
      • apps
      • x11
    • ubuntu
      • systemctl
      • x
    • rpi
  • programming
    • groovy
    • python
      • config
      • basic
      • list
      • pip
      • q&a
    • others
    • archive
      • angular
      • maven
      • mysql
        • installation
        • logs
      • ruby
        • rubyInstallationQ&A
  • tools
    • fonts
    • html & css
    • Jira & Confluence
    • node & npm
      • gitbook
      • hexo
      • github.page
      • code themes
    • app
      • microsoft office
      • vscode
      • virtualbox
      • iterm2
      • browser
      • skype
      • teamviewer
      • others
  • quotes
  • english
Powered by GitBook
On this page

Was this helpful?

  1. linux

troubleshooting

PreviousnetworkNextsystem

Last updated 1 year ago

Was this helpful?

ssl.h

  • issues:

    git-compat-util.h:213:25: fatal error: openssl/ssl.h: No such file or directory
    #include \<openssl/ssl.h\>
  • Solution:

    • Ubuntu/Debian:

      $ sudo apt-get install libssl-dev
    • RHEL/CentOS

      $ sudo yum install openssl-devel

curl.h

  • issues:

    http.h:6:23: fatal error: curl/curl.h: No such file or directory
    #include \<curl/curl.h\>
  • Solution:

    • For OpenSuse:

      $ sudo apt-get install libcurl4-openssl
    • For Ubuntu/Debian:

      $ sudo apt-get install libcurl4-openssl-dev
    • For RHEL/CentOS:

      $ sudo yum install libcurl libcurl-devel
  • reason: libcurl-dev should be installed, but

    Package libcurl-dev is a virtual package provided by:
      libcurl4-openssl-dev 7.35.0-1ubuntu2
      libcurl4-nss-dev 7.35.0-1ubuntu2
      libcurl4-gnutls-dev 7.35.0-1ubuntu2
    You should explicitly select one to install.

expat.h

  • issues:

    http-push.c:17:19: fatal error: expat.h: No such file or directory
    #include \<expat.h\>
  • Solution:

    • For Ubuntu/Debain:

      $ apt-cache search expat | grep dev
      libexpat1-dev - XML parsing C library - development kit
      lib64expat1-dev - XML parsing C library - development kit (64bit)
      libexpat-ocaml-dev - OCaml expat bindings
      lua-expat-dev - libexpat development files for the Lua language
      tdom-dev - fast XML/DOM/XPath/XSLT extension for Tcl written in C (development files)
      
      $ sudo apt-get install libexpat1-dev
    • For RHEL/CentOS:

      $ sudo yum install expat-devel

tclsh

  • issues:

    tclsh failed; using unoptimized loading
    MSGFMT    po/de.msg make[1]: *** [po/de.msg] Error 127
    make: *** [all] Error 2
  • solution:

    • For Ubuntu/Debain:

      $ sudo apt-get install gettext

asciidoc

  • issues

    ASCIIDOC git-add.html
    /bin/sh: 2: asciidoc: not found
    make[1]: *** [git-add.html] Error 127
    make[1]: Leaving directory `/home/marslo/Tools/Software/Programming/Git/git-master/Documentation'
    make: *** [doc] Error 2
  • solution

    # ubuntu/debain
    $ apt-cache search asciidoc
    $ sudo apt-get install -y asciidoc
    
    # centos/rhel
    $ yum install -y docbook-style-xsl
    $ rpm -ivh http://pkgs.repoforge.org/asciidoc/asciidoc-8.6.9-1.el6.rfx.noarch.rpm

docbook2x-texi

  • issues

    db2texi user-manual.texi
    /bin/sh: 2: docbook2x-texi: not found
    make[1]: *** [user-manual.texi] error 127
    make[1]: leaving directory `/home/marslo/tools/software/programming/git/git-master/documentation'
    make: *** [info] error 2
  • solution

    [!NOTE]

    # ubuntu/debain
    $ sudo apt-get install -y docbook2x
    
    # centos/rhel
    $ sudo yum -y --enablerepo=*epel* install docbook2X
    $ sudo ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi

hunspell

  • issues

    $ qmake-qt4
    Project MESSAGE: Install Prefix is: /usr/local
    Project ERROR: Package hunspell not found
  • solution

    # ubuntu/debain
    $ sudo apt-get install -y hunspell libhunspell-dev

ao

  • issues

    $ qmake-qt4
    Project MESSAGE: Install Prefix is: /usr/local
    Project ERROR: Package ao not found
  • solution

    • For Ubuntu/Debain:

      $ apt-cache search ao | grep dev
      libao-dev - Cross Platform Audio Output Library Development
      ...
      
      $ sudo apt-get install libao-dev

ncurses

  • issues

    no terminal library found
    checking for tgetent()... configure: error: NOT FOUND!
          You need to install a terminal library; for example ncurses.
          Or specify the name of the library with --with-tlib.
  • solution

    • For RHEL/CentOS:

      $ yum install ncurses-devel

bash_completion

  • bash: _filedir: command not found

    [!NOTE|label:references:]

    # modify
    BASH_COMPLETION="$(brew --prefix)/etc/profile.d/bash_completion.sh"
    # to
    BASH_COMPLETION="$(brew --prefix bash-completion)/etc/bash_completion"
    
    # and then
    test -f "${BASH_COMPLETION}" && source "${BASH_COMPLETION}"
    • result

      $ type _filedir
      _filedir is a function
      _filedir ()
      {
          local i IFS='
      ' xspec;
          _tilde "$cur" || return 0;
          local -a toks;
          local quoted tmp;
          _quote_readline_by_ref "$cur" quoted;
          toks=(${toks[@]-} $(compgen -d -- "$cur" | { while read -r tmp; do
          printf '%s\n' $tmp;
      done; }));
          if [[ "$1" != -d ]]; then
              [[ ${BASH_VERSINFO[0]} -ge 4 ]] && xspec=${1:+"!*.@($1|${1^^})"} || xspec=${1:+"!*.@($1|$(printf %s $1 | tr '[:lower:]' '[:upper:]'))"};
              toks=(${toks[@]-} $(compgen -f -X "$xspec" -- $quoted));
          fi;
          [ ${#toks[@]} -ne 0 ] && _compopt_o_filenames;
          COMPREPLY=("${COMPREPLY[@]}" "${toks[@]}")
      }
      
      $ fcf _filedir
      _filedir 632 /usr/local/opt/bash-completion/etc/bash_completion

Git for human beings google group
#1305: bash:_filedir: command not found
ssl.h
curl.h
expat.h
tclsh
asciidoc
docbook2x-texi
hunspell
ao
ncurses
bash_completion