Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am attempting to build an ASP.NET MVC 4 project. From the terminal it succeeds. I am logged in as my admin account. Teamcity was installed with its' default settings.

From the command prompt:

xbuild /var/TeamCity/buildAgent/work/8873763565ce1ac8/Source/Momntz.UI/Momntz.UI.csproj /t:Rebuild /p:config=Debug/var/TeamCity/buildAgent/work/8873763565ce1ac8/Source/Momntz.UI/Momntz.UI.csproj /t:Rebuild /p:config=Debug

From Teamcity:

/opt/mono-2.11/bin/xbuild /var/TeamCity/buildAgent/work/8873763565ce1ac8/Source/Momntz.UI/Momntz.UI.csproj /t:Rebuild /p:config=Debug


/opt/mono-2.11/bin/dmcs: 2: /opt/mono-2.11/bin/dmcs: mcs: not found
/opt/mono-2.11/lib/mono/4.0/Microsoft.CSharp.targets: error : Compiler crashed with code: 127.
Task "Csc" execution -- FAILED

It feels like a permissions issue, but I'm new to Ubuntu and I don't know how to go about tracking the issue down.

share|improve this question

1 Answer 1

Try to stop build agent, and start it via /bin/agent.sh start command in order to make agent run under your environment. This would let you know if the issue is in agent or environment.

You may call export command to compare user environment and agent environment. Probably you need to call /bin/bash --login before starting agent.sh as daemon

share|improve this answer
I tried running the agent.sh under sudo. Still encountered the same issue. I was hoping that was the issue. Bummer. The export command is a great idea. –  Chuck Conway Aug 27 '12 at 16:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.