Comments (7)
If you ignore the warning and don't supply a prefix, high chances are that xbuild will not work for F# projects.
from fsharp.
yes. could you do the change and submit a pull request for this?
from fsharp.
please
from fsharp.
I don't recommend doing this. It's non-standard behaviour.
The standard is that the prefix is always set as /usr/local if not specified.
(I know it's annoying to write the prefix, but in an ideal world, you wouldn't need to compile F# from scratch so many times: you would just have binaries available.)
I would recommend just fixing symlink creation on Makefiles to not assume mono is installed in the same prefix as F#. With that, we would be able to remove the warning.
from fsharp.
Mono and F# must be installed at the same locations because the Microsoft.FSharp.targets must be installed relative to Mono's $(MSBuildExtensionsPath32), e.g. to
$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets
and the FSharp.Build.dll must also exist alongside this targets file.
from fsharp.
Adjusted ./configure.ac to give a better message:
On mac this now reports the following more helpful message:
configure: WARNING: /usr/local/bin/mono not found. Prefix should normally be set to the mono installation path. Please re-run with
./autogen.sh --prefix=/Library/Frameworks/Mono.framework/Versions/3.0.1
from fsharp.
$ type mono
mono is /Library/Frameworks/Mono.framework/Versions/Current/bin/mono
jacek:~/oss/fsharp
$ ./autogen.sh
checking whether make sets $(MAKE)... yes
checking for pkg-config... /Library/Frameworks/Mono.framework/Versions/Current/bin/pkg-config
checking for mono-sgen... /Library/Frameworks/Mono.framework/Versions/Current/bin/mono-sgen
configure: creating ./config.status
config.status: creating launcher
config.status: creating Makefile
config.status: creating config.make
config.status: creating src/fsharp/Makefile
config.status: creating src/fsharp/FSharp.Build-proto/Makefile
config.status: creating src/fsharp/FSharp.Compiler-proto/Makefile
config.status: creating src/fsharp/Fsc-proto/Makefile
config.status: creating src/fsharp/FSharp.Core/Makefile
config.status: creating src/fsharp/FSharp.Build/Makefile
config.status: creating src/fsharp/FSharp.Compiler/Makefile
config.status: creating src/fsharp/Fsc/Makefile
config.status: creating src/fsharp/FSharp.Compiler.Interactive.Settings/Makefile
config.status: creating src/fsharp/FSharp.Compiler.Server.Shared/Makefile
config.status: creating src/fsharp/fsi/Makefile
config.status: creating src/fsharp/policy.2.0.FSharp.Core/Makefile
config.status: creating src/fsharp/policy.4.0.FSharp.Core/Makefile
config.status: creating src/fsharp/policy.2.3.FSharp.Core/Makefile
config.status: creating src/fsharp/policy.4.3.FSharp.Core/Makefile
configure: WARNING: /usr/local/bin/mono not found. Prefix should normally be set to the mono installation path. Consider using
./autogen.sh --prefix=/Library/Frameworks/Mono.framework/Versions/3.0.1
Why can't the autogen take /Library/Frameworks/Mono.framework/Versions/Current
as the default path on Mac OS X? How to check MSBuildExtensionsPath32
?
from fsharp.
Related Issues (20)
- Compiler and interactive session crash instantly. HOT 2
- StackOverflow calling very large generated function HOT 3
- .Net Core FSI causes security exception when attempting to executing a PInvoke call HOT 11
- Does F# type inference works top-down (and left-right) only? HOT 2
- Why is Map.filter 10x slower than using a query to select the keys and remove those individually? HOT 2
- Can't build with mono 5.18 / msbuild 15.3 (also fails without msbuild) HOT 19
- FSI evaluates expressions incorrectly HOT 1
- Result builder throwing null reference exception HOT 5
- Fail to parse(?) decimals with FSharpValue.MakeRecord ONLY in iOS device with Region Spanish/Colombia HOT 8
- fsharpi error on matching union type HOT 1
- Missing code for version 4.5.4 and 4.6.0+ HOT 3
- Publish F# 4.6 FSharp.Compiler.Tools package HOT 16
- fsharpi crash when applying attribute to type parameter HOT 2
- IEvent.Publish "forgets" that it's an IObservable when used with an anonymous record argument HOT 2
- Publish F-Sharp 4.6 on Github HOT 4
- F#: [<StructuredFormatDisplay>] in composed records just print dots. (...) HOT 2
- is there any uwp or wpf template for f# in visual studio? HOT 1
- can't run fsi HOT 4
- The property of `Struct Record` should add [<IsReadOnly>] for the read operation HOT 2
- This repo can be retired HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsharp.