Git Product home page Git Product logo

Comments (7)

knocte avatar knocte commented on May 26, 2024

If you ignore the warning and don't supply a prefix, high chances are that xbuild will not work for F# projects.

from fsharp.

funnelweb avatar funnelweb commented on May 26, 2024

yes. could you do the change and submit a pull request for this?

from fsharp.

funnelweb avatar funnelweb commented on May 26, 2024

please

from fsharp.

knocte avatar knocte commented on May 26, 2024

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.

funnelweb avatar funnelweb commented on May 26, 2024

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.

funnelweb avatar funnelweb commented on May 26, 2024

Adjusted ./configure.ac to give a better message:

cce5e65

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.

jaceklaskowski avatar jaceklaskowski commented on May 26, 2024
$ 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.