Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22300

Go 1.13: gcc-5 not in PATH

$
0
0

I've installed Go 1.13.4 in Debian Linux 10 using brew, package golang (previously I've removed golang-1.11 installed via apt). It follows brew info output.

$ brew info golanggo: stable 1.13.4 (bottled), HEADOpen source programming language to build simple/reliable/efficient softwarehttps://golang.org/home/linuxbrew/.linuxbrew/Cellar/go/1.13.4 (9,271 files, 408.1MB) *  Poured from bottle on 2019-12-07 at 14:31:52From: https://github.com/Homebrew/linuxbrew-core/blob/master/Formula/go.rb==> RequirementsRequired: macOS is required ✔==> Options--HEAD    Install HEAD version==> Analyticsinstall: 1,571 (30 days), 8,628 (90 days), 31,650 (365 days)install-on-request: 784 (30 days), 4,096 (90 days), 13,267 (365 days)build-error: 0 (30 days)

When I try to execute go build on a package with code calls native OS functions, GO compiler tells that it's unable to find gcc-5 command as presented below.

$ go build# _/home/giacomo/src/goproc/processexec: "gcc-5": executable file not found in $PATH

So I've installed latest GCC (9.2.1) from testing (deb http://ftp.us.debian.org/debian testing main contrib non-free) repository and created a symbolic link to /usr/bin/x86_64-linux-gnu-gcc-9.

This solved the problem. But the question is: is this the correct way to fix the problem? Or is there a place to properly configure the GCC used by golang?

Any clarification very appreciated!


Viewing all articles
Browse latest Browse all 22300

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>