ioi/isolate

C# program failed to compile using mcs - error CS2001: Source file `Main.cs' could not be found

Closed this issue · 1 comments

image

root@subhast:/var/local/lib/isolate/586/box# ls
Main.cs
root@subhast:/var/local/lib/isolate/586/box# whereis mono
mono: /usr/bin/mono /usr/lib/mono /etc/mono /usr/share/mono /usr/share/man/man1/mono.1.gz
root@subhast:/var/local/lib/isolate/586/box# isolate --cg -p -v --box-id=586 -E PATH=/usr/bin/mcs --run -- /usr/bin/mcs Main.cs 
Using control group box-586 under parent .
Entering control group box-586
Started proxy_pid=300217 box_pid=300218 box_pid_inside_ns=2
Binding ./box on box (flags 5006)
Binding /bin on bin (flags 5007)
Binding /dev on dev (flags 5003)
Binding /lib on lib (flags 5007)
Binding /lib64 on lib64 (flags 5007)
Mounting proc on proc (flags 5)
Binding ./tmp/tmp on tmp (flags 5006)
Binding /usr on usr (flags 5007)
error CS2001: Source file `Main.cs' could not be found
Compilation failed: 1 error(s), 0 warnings
Exited with error status 1
root@subhast:/var/local/lib/isolate/586/box# 

This is resolved by uninstalling mono and re-installing it inside /usr/local/ by manually download and using make install