[Mono-list] RE: What/Where is "csc.exe"?

Daniel Morgan danmorg@sc.rr.com
Thu, 30 May 2002 12:48:35 -0400

You may have to get the mcs and class library binaries from
mono.baselabs.org if you use RPMS.  If you look on 
the http://www.go-mono.com/download.html page, 
they have a link for DEBS too.

Currently, corlib only builds on windows.  However, other class library
assemblies and the mcs compiler can be compiled on Linux, but you need
to get the binaries first.

Sort of like, in order to build gcc, you have to have the gcc binaries.

-----Original Message-----
From: Alexandros Karypidis [mailto:karypid@inf.uth.gr] 
Sent: Thursday, May 30, 2002 12:54 PM
To: Daniel Morgan
Cc: mono-list@ximian.com
Subject: What/Where is "csc.exe"?


I downloaded the libs and compiler from monolabs and it works ok.  I can

compile and run "Hello world" and other examples.  I am now trying to 
compile my own mcs (after a checkout of the mcs tree) and am stuck

It seems I need some tool called "csc.exe" which does not exist in the 
monolabs binaries:

karypid@grads-d5-pc-2:~/Code/Mono/mcs> make linux
for i in jay nant mcs class nunit tools; do                     \
        (cd $i; make linux) || exit 1;  \
make[1]: Entering directory `/laptop-home/Code/Mono/mcs/jay'
cc -o jay  closure.o error.o lalr.o lr0.o main.o mkpar.o output.o 
reader.o symtab.o verbose.o warshall.o
main.o: In function `create_file_names':
main.o(.text+0x551): the use of `mktemp' is dangerous, better use
make[1]: Leaving directory `/laptop-home/Code/Mono/mcs/jay'
make[1]: Entering directory `/laptop-home/Code/Mono/mcs/nant'
csc /out:NAnt.exe /recurse:*.cs
/bin/sh: csc: command not found
make[1]: *** [NAnt.exe] Error 127
make[1]: Leaving directory `/laptop-home/Code/Mono/mcs/nant'
make: *** [linux] Error 1

Daniel Morgan wrote:

>You need to check out from cvs the mcs module.
>Such as:
>cvs -z3 checkout mcs
>cd mcs
>cp mcs/mcs* ~/mono/install/bin
>cp class/lib/* ~/mono/install/lib
>Make sure your ~/mono/install/bin path is in your $PATH
>And that ~/mono/install/lib path is in your $LD_LIBRARY_PATH and $PATH
>Your install prefix may differ from what the ~/mono/install I used
>-----Original Message-----
>From: mono-list-admin@ximian.com [mailto:mono-list-admin@ximian.com] On
>Behalf Of Alexandros Karypidis
>Sent: Wednesday, May 29, 2002 3:53 PM
>To: mono-list@ximian.com
>Subject: [Mono-list] Zero-sized DLLs (corlib, System.* etc.)
>Hello everyone,
>I am trying to compile mono using anonymous CVS access.  I executed 
>"mono-build.sh" and used anonymouse CVS to checkout the source tree. 
> Everything compiles ok with no error messages.  When I try to run mcs 
>however I get:
>karypid@grads-d5-pc-2:~/Code/Mono/install/bin> ./mcs
>The assembly corlib.dll was not found or could not be loaded.
>It should have been installed in the 
>`/laptop-home/Code/Mono/install/lib' directory.
>Obviously, it's because:
>karypid@grads-d5-pc-2:~/Code/Mono/install/bin> ls -l 
>-rw-r--r--    1 karypid  users           0 May 29 22:49 
>-rw-r--r--    1 karypid  users           0 May 29 22:49 
>-rw-r--r--    1 karypid  users           0 May 29 22:49 
>-rw-r--r--    1 karypid  users           0 May 29 22:49 
>-rw-r--r--    1 karypid  users           0 May 29 22:49 
>-rw-r--r--    1 karypid  users           0 May 29 22:49 
>Am I supposed to obtain these from somewhere else? (e.g. msdn)
>Mono-list maillist  -  Mono-list@ximian.com