Go fork/exec permission denied error

后端 未结 5 1755
终归单人心
终归单人心 2021-01-04 10:09

I recently installed Go onto our server with CentOS 6.3. The install appears to have gone fine. However I made a test \"hello world\" script, and when I run I get the foll

5条回答
  •  臣服心动
    2021-01-04 11:00

    To fix this issue on my Chromebook I just remounted ~/tmp as executable. There may be security implications in doing this, but since go run works on other platforms I figure maybe it's not that bad (especially on a local dev machine):

    sudo mount -i -o remount,exec /tmp/
    

    I added this to my .bash_profile script.

提交回复
热议问题