[MonoDevelop] Mono Error : mcs command not found
Andres G. Aragoneses
knocte at gmail.com
Tue Aug 26 15:54:22 UTC 2014
Using "make install" with a user without privileges should have given
you errors (so yeah, that's weird).
However, using "root" as the user to install is actually not the
recommended way to do things. The encouraged way is to configure and
compile mono using your normal user, and then use "sudo" for the
installation: "sudo make install" instead of "make install".
On 26/08/14 17:18, Hari wrote:
> Thanks Tim and Robin.
>
> I have installed mono using a *non-root user* which failed to copy the
> necessary files to the folder */usr/local/bin, /usr/local/lib.* But I
> haven't noticed any error message during the non root mono installation.
>
> After that I have re-installed mono using "*root" user* which copied all
> the required mono files tothe folder */usr/local/bin, /usr/local/lib*
>
> Once again thanks for everyone’s help.
>
> Hari
>
>
> On Tue, Aug 26, 2014 at 9:36 AM, Robin Neatherway
> <robin.neatherway at gmail.com <mailto:robin.neatherway at gmail.com>> wrote:
>
> Hi Hari,
>
> You must 'source' the env.sh file as Tim said:
>
> > To run it, make sure there is a dot and a space: . env.sh
>
> If you use ./env.sh, this changes the environment variables in the
> subshell that is running env.sh and the change is lost when that
> subshell exits.
>
> Robin
>
> On Tue, Aug 26, 2014 at 3:21 PM, Hari <phariparam at gmail.com
> <mailto:phariparam at gmail.com>> wrote:
> > Hi Timotheous,
> >
> > I have created an env.sh file with the content as follows:
> >
> > export PATH=/usr/local/bin:$PATH
> > export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
> > export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
> >
> > I executed the .env.sh file (./env.sh) and after that in the same
> shell, I
> > typed the command "mcs". But I got the same error like mcs:
> command not
> > found.
> > I also tried setting the above environment variable by executing
> the each
> > command separately. But the result is the same.
> >
> > I tried the following:
> > ./mcs Program.cs
> >
> >
> > Thanks
> > Hari
> >
> > On Tue, Aug 26, 2014 at 5:27 AM, Timotheus Pokorra
> > <timotheus.pokorra at solidcharity.com
> <mailto:timotheus.pokorra at solidcharity.com>> wrote:
> >>
> >> Hello Hari,
> >>
> >> I usually create an env.sh file, that would set the environment
> >> variables like this:
> >>
> >> export PATH=/usr/local/bin:$PATH
> >> export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
> >> export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
> >>
> >> To run it, make sure there is a dot and a space: . env.sh
> >>
> >> There is no need to copy your .cs files to some special folder.
> >>
> >> hope this helps,
> >> Timotheus
> >>
> >> On 25 August 2014 23:36, Hari <phariparam at gmail.com
> <mailto:phariparam at gmail.com>> wrote:
> >> > I have downloaded and installed mono-3.6.0 in my Red Hat Linux 6.5
> >> > system(Virtual Box) from the url :
> >> > http://origin-download.mono-project.com/sources/mono/
> >> >
> >> >
> >> >
> >> > I did the following steps for the mono installation:
> >> >
> >> >
> >> >
> >> > 1. tar -xvf mono-3.6.0.tar.bz2
> >> >
> >> > 2. The extract path is /opt/test/mymono/mono-3.6.0
> >> >
> >> > 3. cd mono-3.6.0
> >> >
> >> > 4. ../configure --prefix=/usr/local
> >> >
> >> > 5. make && make install
> >> >
> >> >
> >> >
> >> > After the successful mono installation I tried to compile a
> sample c#
> >> > program
> >> >
> >> >
> >> >
> >> > 1. copied the sample Program.cs file to ../mono-3.6.0/mcs folder
> >> >
> >> > 2. cd ../mono-3.6.0/mcs
> >> >
> >> > 3. mcs Program.cs
> >> >
> >> >
> >> > Error:
> >> > bash: mcs: command not found
> >> >
> >> > Thanks for your help.
> >> >
> >> >
> >> > _______________________________________________
> >> > Monodevelop-list mailing list
> >> > Monodevelop-list at lists.ximian.com
> <mailto:Monodevelop-list at lists.ximian.com>
> >> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> >> >
> >
> >
> >
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> <mailto:Monodevelop-list at lists.ximian.com>
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> >
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> <mailto:Monodevelop-list at lists.ximian.com>
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
>
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
More information about the Monodevelop-list
mailing list