집에선 아래 소스를 컴파일하고 실행하는데 문제가 없었는데 회사에서 해보니 오류가 나네요.
$ gmcs dotnet2test.cs -out:dotnet2test.exe -pkg:dotnet
error CS8027: Couldn't run pkg-config: ApplicationName='pkg-config', CommandLine='--libs dotnet', CurrentDirectory=''
pkg-config를 찾아봤더니 실행 경로에 없습니다.
지금까지 mono를 설치할때 경로를 별도로 설정해준 적도 없었지만 잘되었거든요.
아래는 현재 설정된 경로입니다.