-
Notifications
You must be signed in to change notification settings - Fork 322
Building Fsharp (CentOS) #313
Comments
What do you mean with this? did you have mono installed as a package too? |
Sorry I was not more clear.
This is the exact error I get...
|
Can you confirm that there's no mono executable in /usr/bin/ ? (If there is, what does |
I installed mono on /usr/local/
when I check on the version on /usr/local/
|
I know you installed in /usr/local, but you sure you don't have other mono in /usr ? |
Have you tried setting PKG_CONFIG_PATH? |
I think most distros include a /usr/local path by default in PKG_CONFIG_PATH, maybe CentOS not? That was going to be my next suggestion after he confirmed that he doesn't have 2 mono installations... |
Yes I would have thought so to, but just thought it was worth checking.
|
Rereading Tony's post I see that he doesn't have a /usr/bin/mono so I don't
|
Ok, setting the PKG_CONFIG_PATH worked
If one is building mono/fsharp from source, there should be a note that the PKG_CONFIG_PATH should be set. Thanks for you help. |
To make this crystal clear, it depends on where the user builds mono, e.g.
|
I am having the same problem. The difference is that I installed mono from source to /usr (so the executables are in /usr/bin). I use:
I can see the folder /usr/lib/pkgconfig.
The error is exactly the same as presented before this issue:
|
Mmm, I've always used "=" instead of a space here: |
I realized that mono is actually installed at /mono (/root/mono). The error is gone but now I got another error during compilation, so I will open a new issue. |
Fixing fsharp#405 based on fsharp/fsharp#313
I followed the steps outlined in option 2 here:
http://fsharp.org/use/linux/
./autogen.sh --prefix /usr/local
Fsharp build failed because it assumed that mono was installed with a package.
Where I had installed mono using the source code, i.e. make; make install.
I ended up commenting out the package checks in configure.ac
then setting the mono prefix manually
There should be a command switch which would override the check for the mono package and allow the user to input the mono location.
With the changes above, I am able to generate a the Make files needed to build. However the build fails with the following error:
For reference I am using the Linux sandbox provided by Hortonworks
http://hortonworks.com/products/hortonworks-sandbox/#install
Any ideas on what I am doing wrong or how I can fix this build error?
The text was updated successfully, but these errors were encountered: