-
Notifications
You must be signed in to change notification settings - Fork 841
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
FreeBSD support and installation instructions #1253
Comments
Have you tried it? In theory, Stack should work just fine on FreeBSD. It wouldn't be hard to start distributing binaries for FreeBSD either, since there are official GHC bindists available. Basically all we'd need is a Vagrantfile in https://github.com/commercialhaskell/stack/tree/master/etc/vagrant that sets up the environment in which a binary gets built. A pull request would be welcome. We'd also be very open to anyone who wants to contribute Stack packages/ports to FreeBSD. We can provide any help needed, and would also be willing to take over maintenance for new Stack versions once the legwork to get it all set up has been done. |
I'm not much proficient in BSD. I have tried to build it via cabal without Stackage config without success. I should try with Stackage. I'll try with vagrant, too. Thanks! |
This seems to work for building
This However, there's an issue that blocks us distributing
When you build Haskell code after this, there are a lot of
I guess we could teach |
I'll just send a PR for stackage-content. |
Does |
I tried to run
There's a (OTOH, using stackage lts 3.22, which sports GHC 7.10.2, and thus using the system's ghc, it seems to work fine) |
Yep, I had to install Yes, the metadata for stack has been updated so now |
I've built a pkg repository for stack and FreeBSD here: http://stack-pkg.applicative.tech/ Build tools are here in case anyone is interested: https://github.com/applicative-tech/stack-pkg |
This looks great! If you don't mind, I'd like to look into integrating this with our standard release process and hosting the packages on our S3 bucket. I didn't have a chance to do this for the just-released stack-1.0.4, unfortunately. |
@t6: Also, feel free to make a pull request on the |
@borsboom: Thanks, just updated the package repository to stack 1.0.4 and have opened a pull request for adding links. |
Has anyone tried getting this in FreeBSD ports? |
Sure that was my initial plan, but I have given up for now for time reasons and the problems described here: https://github.com/applicative-tech/stack-pkg/blob/master/devel/stack/Makefile#L31-L53 I'm pretty sure that they can be solved though by someone who knows, understands (or wants to invest the time to understand) the ports tree and its Cabal support i.e. |
hi @t6, yikes, not an easy task. |
TWIMC stack works on FreeBSD just fine. Here is simplest way to install it:
Then copy ~/.cabal/bin/stack somewhere in your $PATH. After that cabal and other Haskell packages are no longer required. I think these steps could be recommended in the official installation instruction. |
Replicated and confirmed @afiskon's simple install guide using a clean install of freebsd 10.3. |
@afiskon @Cipherwraith You still need |
@nd2s I don't have these packages and everything seems to work. Could be true for older LTS`es though. |
@afiskon I am on Just checked again: I definitely need them. |
@nd2s oh, I see. I am on FreeBSD 11.0-CURRENT and I got the same error. But I thought the reason for this is that GHC was built for -STABLE or -RELEASE branch. So I just created a symlink to libutils.so and it solved all problems. @Cipherwraith didn't you encounter this error? |
@afiskon |
@t6 I'm trying out the packages you're providing on a fresh system, but |
@borsboom Thanks, I've added a run dependency on |
The just-released stack-1.1.2 now includes an official FreeBSD bindist. Instructions to download and install are here: http://docs.haskellstack.org/en/stable/install_and_upgrade/#freebsd |
Wow! Great!
|
Instructions on http://docs.haskellstack.org/en/stable/install_and_upgrade/#freebsd have pointing to this issue which is already resolved, i.e. progress finished? |
I've removed that bit of text. Thanks for letting me know! |
Thanks! |
It's in the ports tree now: https://www.freshports.org/devel/stack |
It would be great if there is FreeBSD support for stack, too.
The text was updated successfully, but these errors were encountered: