[MonoDevelop] Mono Error : mcs command not found
Robin Neatherway
robin.neatherway at gmail.com
Tue Aug 26 14:36:30 UTC 2014
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> 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> 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> 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
>> > 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