LV
Back to writing

// Linux · Debian · Desenvolvimento · Linux Mint Debian Edition

apt-file search: solving "No such file or directory" problems

You're trying to compile a program on Linux but you run into the message: "No such file or directory". Usually when you run configure or make itself.

A good tip is to install apt-file (if you don't have it already) and run a search for the package that contains the missing file, thus solving the problem.

# Instale o apt-file.
sudo apt-get update
sudo apt-get install apt-file

# Atualize o cache do apt-file.
sudo apt-file update

# Procure pelo arquivo.
sudo apt-file search StdSel.h
    libxmu-headers: /usr/include/X11/Xmu/StdSel.h

# Agora instale o pacote que contém o arquivo.
sudo apt-get install libxmu-headers

# Opcionalmente apague o cache do apt-file para liberar espaço em disco.
sudo apt-file purge

Done! Simple, but it helps a lot.

Comments 0

No comments yet.