Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having trouble installing on Linux and windows #197

Open
Yuna-She-They opened this issue Dec 13, 2018 · 14 comments
Open

Having trouble installing on Linux and windows #197

Yuna-She-They opened this issue Dec 13, 2018 · 14 comments

Comments

@Yuna-She-They
Copy link

every time I try to run the script on each platform I keep getting a bunch of errors and I'm not really sure how to fix them

@masonwheeler
Copy link
Contributor

Neither am I, for the moment, as I don't know what the errors are. Could you copy the output to here?

@Yuna-She-They
Copy link
Author

mkdir -p bootstrap
cp -R lib/ bootstrap/lib

Mono loads log4net before privatebinpath is set-up, so we need this in the same directory

as NAnt.exe

cp lib/common/neutral/log4net.dll bootstrap
cp src/NAnt.Console/App.config bootstrap/NAnt.exe.config
/Library/Frameworks/Mono.framework/Versions/Current/bin/mcs -target:exe -define:MONO,NET_1_0,NET_1_1,NET_2_0,ONLY_2_0 -out:bootstrap/NAnt.exe -r:bootstrap/log4net.dll
-r:System.Configuration.dll -recurse:src/NAnt.Console/*.cs src/CommonAssemblyInfo.cs
/bin/sh: 1: /Library/Frameworks/Mono.framework/Versions/Current/bin/mcs: not found
Makefile:98: recipe for target 'bootstrap/NAnt.exe' failed
make: *** [bootstrap/NAnt.exe] Error 127

Here you go

@masonwheeler
Copy link
Contributor

All right. Looks like it's trying to run mcs, the Mono C# compiler, at /Library/Frameworks/Mono.framework/Versions/Current/bin/mcs, and it can't find it. Can you verify if that path exists? If it's not there, you probably don't have Mono installed on your system.

@Yuna-She-They
Copy link
Author

so I just did a search for mono / mcs and this is what shows up under mono-mcs i A mono-mcs - Mono C# 2.0 / 3.0 / 4.0 / 5.0 compil

@masonwheeler
Copy link
Contributor

All right. But does that specific path exist? Or do you have mcs installed somewhere else?

I wasn't the one who set up the Linux build scripts, so I don't know exactly how this side of it works, but it sure looks like it's looking for mcs at that specific path and not finding it there, even if you do have it somewhere else.

@Yuna-She-They
Copy link
Author

no for some reason the path doesn't exist, and I'm not sure where else it could be.

@masonwheeler
Copy link
Contributor

All right, looks like the source of the problem is here. The MONO_DIR environment variable is not defined, and it's plugging that path in as a default.

Not 100% sure, but it looks like you can fix this by finding the Mono install path on your system and setting the MONO_DIR environment variable to that path, and then re-running this.

@Yuna-She-They
Copy link
Author

Yuna-She-They commented Dec 14, 2018

I honestly have no clue where the path is defined it looks like the program is in /usr/bin but Iḿ not sure where everything I need is located

here is an output of my command prompt

/usr/bin/mono
ben@lappy ~/boo $ ./build-tools/bootstrap
mkdir -p bootstrap
cp -R lib/ bootstrap/lib

Mono loads log4net before privatebinpath is set-up, so we need this in the same directory

as NAnt.exe

cp lib/common/neutral/log4net.dll bootstrap
cp src/NAnt.Console/App.config bootstrap/NAnt.exe.config
/usr/bin/mono/bin/mcs -target:exe -define:MONO,NET_1_0,NET_1_1,NET_2_0,ONLY_2_0 -out:bootstrap/NAnt.exe -r:bootstrap/log4net.dll
-r:System.Configuration.dll -recurse:src/NAnt.Console/*.cs src/CommonAssemblyInfo.cs
/bin/sh: 1: /usr/bin/mono/bin/mcs: not found
Makefile:98: recipe for target 'bootstrap/NAnt.exe' failed
make: *** [bootstrap/NAnt.exe] Error 2
ben@lappy ~/boo $

@masonwheeler
Copy link
Contributor

@eatdrinksleepcode Can you weigh in on this one? It's getting out past the edges of my knowledge at this point...

@Yuna-She-They
Copy link
Author

@masonwheeler is there a gitter.im room for the boo programming language? I don't want to keep constantly bothering you about a visual studio extension, I was able to get boo to work on windows with sharpDevlop, but that's about it

@masonwheeler
Copy link
Contributor

No, unfortunately. I've looked into setting one up, but I don't have the access rights to associate an external app with boo-lang. I think @bamboo is the only one who can do that.

@eatdrinksleepcode
Copy link
Contributor

eatdrinksleepcode commented Dec 20, 2018

@Braber01 what is the output of where mcs?

Check out the .travis.yml config file (in the root of the repository) for how we build on Linux on Travis CI. Try setting the same environment variables as are set there:

NUNIT_VERSION="2.6.3"
NANT_COMMIT="e3644541bf083d8e33f450bfbd1a4147e494769c"
MONO_PATH=mono
MCS_PATH=mcs

@Yuna-She-They
Copy link
Author

which mcs says /usr/bin/mcs I'm using linux mint if it helps

@Yuna-She-They
Copy link
Author

tried switching mono_path and mcs_path to /usr/bin/mcs and /usr/bin mono and I still got errors

mkdir -p bootstrap
cp -R lib/ bootstrap/lib

Mono loads log4net before privatebinpath is set-up, so we need this in the same directory

as NAnt.exe

cp lib/common/neutral/log4net.dll bootstrap
cp src/NAnt.Console/App.config bootstrap/NAnt.exe.config
/Library/Frameworks/Mono.framework/Versions/Current/bin/mcs -target:exe -define:MONO,NET_1_0,NET_1_1,NET_2_0,ONLY_2_0 -out:bootstrap/NAnt.exe -r:bootstrap/log4net.dll
-r:System.Configuration.dll -recurse:src/NAnt.Console/*.cs src/CommonAssemblyInfo.cs
/bin/sh: 1: /Library/Frameworks/Mono.framework/Versions/Current/bin/mcs: not found
Makefile:98: recipe for target 'bootstrap/NAnt.exe' failed
make: *** [bootstrap/NAnt.exe] Error 127
ben@lappy ~/boo $

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants