Skip to content

Instantly share code, notes, and snippets.

@Tanete
Last active November 20, 2018 09:18
Show Gist options
  • Select an option

  • Save Tanete/9f8cf418ad2938c2416ea46af3a8cfd8 to your computer and use it in GitHub Desktop.

Select an option

Save Tanete/9f8cf418ad2938c2416ea46af3a8cfd8 to your computer and use it in GitHub Desktop.
Fix "cannot rename due to errors: /usr/local/go/src/net/cgo_linux.go:10:19: fatal error: netdb.h: no such file or directory" error on LinuxMint

Fix "cannot rename due to errors: /usr/local/go/src/net/cgo_linux.go:10:19: fatal error: netdb.h: no such file or directory" error on LinuxMint

  • Using Visual Studio Code on Linux Mint 18.1 Cinnamon Edition.

  • Trying to use Rename Symbol feature (gorename) to rename variable name.

  • Error message "cannot rename due to errors: /usr/local/go/src/net/cgo_linux.go:10:19: fatal error: netdb.h: no such file or directory"

  • Missing netdb.h on Linux Mint like this post?

  • Try apt install libc6-dev to fix this.

@Rots
Copy link
Copy Markdown

Rots commented Nov 20, 2018

Thanks, worked for me.

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