Julia language on DragonflyBSD
karu.pruun
karu.pruun at gmail.com
Tue Apr 8 10:06:58 PDT 2025
On Tue, Apr 8, 2025 at 4:11 AM Sayed Mohammad Badiezadegan
<mbzadegan at gmail.com> wrote:
>
> Hi everybody,
>
> I tried to install Julia on my DragonflyBSD, which was installed by the DragonflyBSD 2025-04-07 snapshot.
>
> I installed GCC13, GIT, OpenBLAS, and SuiteSparse, but I still got this error when I run the following:
>
> root@:/julia # gmake -j 4
> /bin/sh: {python|python3|python2} not found: not found
> /bin/sh: {python|python3|python2} not found: not found
> /bin/sh: {python|python3|python2} not found: not found
> /bin/sh: {python|python3|python2} not found: not found
> /bin/sh: {python|python3|python2} not found: not found
> /bin/sh: {python|python3|python2} not found: not found
> /bin/sh: {python|python3|python2} not found: not found
> /bin/sh: {python|python3|python2} not found: not found
> /bin/sh: {python|python3|python2} not found: not found
> /bin/sh: {python|python3|python2} not found: not found
> /bin/sh: {python|python3|python2} not found: not found
> gmake: not: No such file or directory
> /bin/sh: not: not found
> /julia/Make.inc:1375: normalize_triplet.py appears to be non-functional (used python interpreter "not found"), so BinaryBuilder disabled
> /bin/sh: not: not found
> /julia/Make.inc:1445: *** "Attempting to build OpenBLAS or SuiteSparse without a functioning fortran compiler!". Stop.
> root@:/julia #
>
> What should I do? Thank you.
Julia has many dependencies as described on their build page (e.g. github):
https://github.com/JuliaLang/julia/blob/master/doc/src/devdocs/build/build.md#required-build-tools-and-external-libraries
These additional packages are built automatically unless instructed
otherwise. Many of these packages would build correctly only with
DragonFly specific patches, which are in DPorts. To do this, you can
specify which of those packages don't need building by setting
variables in Make.user.
You also need to build LLVM, and they provide patches for this:
"The most complicated dependency is LLVM, for which we require
additional patches from upstream (LLVM is not backward compatible)."
Anyhow, the direct build seems quite complicated. You could try to
take an easier route and use FreeBSD's port --- this is guaranteed to
build at least on FreeBSD, so with additional tweaks, it might also
succeed on DragonFly.
If this works, you can try to port a more recent version.
Best
Peeter
--
More information about the Users
mailing list