[Fluxus] Fluxus runtime error on Ubuntu 18.04

Hong Yang yangh.cn at gmail.com
Mon Oct 7 21:21:47 PDT 2019


Hi Javier

Well done!

With Ubuntu 18.04, the only things hard to install and run fluxus is
compile Racket from source code due to the librktio.a is missing in the
racket package from [1], I filled an issue for it at [2].

Hi Dave

As mentioned in the issue for racket-ppa, -lrktio -lffi still needed for
the final step to link fluxus with libracket3m.a. because the librktio.a is
a separate library which required by libracket3m.a. and the libffi is
dynamic linked and required by libracket3m.a. after the link step,
libracket3m.a and librktio.a will be statically linked into (as part of)
fluxus, libffi is still dynamic linked with fluxus.

Racket repo includes a copy of libffi (with tiny modifications), I guess if
you compile racket by yourself, the copies of libffi will be used, so that
no need to link with a dynamic libffi, but the racket from [1] linked with
libffi shipped by Ubuntu.

[1] https://launchpad.net/~plt
[2] https://github.com/takikawa/racket-ppa/issues/6

Thanks
Walter

On Mon, Oct 7, 2019 at 7:18 PM Javier Candeira <javier at candeira.com> wrote:

> On 7/10/19 20:34, dave wrote:
> > On 07/10/2019 11:28, Javier Candeira wrote:
> >> But it's not found:
> >>
> >> $ ldconfig -p | grep libode
> >> <crickets>
> >> $
> >>
> >> I installed it according to the instructions, like so:
> >>
> >> ./configure --prefix=/usr/ --with-pic \
> >>      --with-gnu-ld \
> >>      --enable-double-precision \
> >>      --enable-libccd
> >> sudo make install
> >
> > I guess /usr/lib is not on your ld path - /usr/local/lib will for
> > fluxus, so perhaps try to rebuild ode with:
> >
> > ./configure --prefix=/usr/local/ --with-pic
>
> Thanks, I will now. However, note that /usr/local/lib wasn't in my ld path
> either until I did:
>
> $ echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/usr-local.conf &&
> sudo
> ldconfig
>
> This matters because I started from a pristine Ubuntu 18.04 install, and I
> think the existing instructions worked on a computer that had already had
> some work on it.
>
> I'm keeping good notes; my current fork has an updated README with all the
> steps, including the correction under current discussion and the typo fix
> by
> Janis. Hopefully by the end of this process I'll have a PR with
> instructions
> that work from "scratch" from "just installed Ubuntu" levels of "scratch".
>
> So I now installed with --prefix=/usr/local/, and saw that the .so weren't
> there either:
>
> $ ls -la /usr/local/lib/libode.*
> -rw-r--r-- 1 root root 18053722 Oct  7 21:49 /usr/local/lib/libode.a
> -rwxr-xr-x 1 root root      897 Oct  7 21:49 /usr/local/lib/libode.la
>
> But then I remembered that some other instructions had an --enable-shared
> option, so I added it to the ODE compilation options, and...
>
> $ ls -la /usr/local/lib/libode.*
> -rw-r--r-- 1 root root 17923328 Oct  7 21:53 /usr/local/lib/libode.a
> -rwxr-xr-x 1 root root      947 Oct  7 21:53 /usr/local/lib/libode.la
> lrwxrwxrwx 1 root root       15 Oct  7 21:53 /usr/local/lib/libode.so ->
> libode.so.8.0.0
> lrwxrwxrwx 1 root root       15 Oct  7 21:53 /usr/local/lib/libode.so.8 ->
> libode.so.8.0.0
> -rwxr-xr-x 1 root root  7845264 Oct  7 21:53 /usr/local/lib/libode.so.8.0.0
>
> And.... SUCCESS!!!
>
> Thanks for this. Looking forward to starting the tutorials.
>
> PR Incoming.
>
> Javier
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20191008/ff79ea99/attachment-0002.html>


More information about the Fluxus mailing list