codeskyblue / codeskyblue/go-sh

make && $PATH env variable

Open
#18 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.1k
Forks
137
PR merge metrics
No merged PRs in 30d

Description

I need to execute `make` from go-sh, but I get this

```
configure: Setting lib to 'lib' (the default)
configure: Will try -pthread then -lpthread to enable POSIX Threads.
configure: CHECKS for site configuration
checking for gcc... gcc
checking whether the C compiler works... no
```

i.e. it can't find C compiler, I also checked $PATH and got an empty string

any idea how to make it work?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported `make` invocation through go-sh and inspect how the `$PATH` environment variable is passed to the child process. Done means the subprocess receives the caller's PATH and can locate the C compiler; the issue does not name a source file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.