Hello everyone,
I needed to install Tensorflow 2.1 for a project. Tensorflow is not available in the packages and the port is a very old version of Tensorflow (1.4 if I remember well).
So I tried to compile it from source. And, actually, it seems to be possible to compile Tensorflow for FreeBSD just by downloading the release and issuing a single build command:
(I found this info on these two links: https://github.com/tensorflow/tensorflow/issues/37345 and https://github.com/tensorflow/tensorflow/issues/23613#issuecomment-440757155 )
I did that and it started compiling the thing but the only problem is that it's been more than 24 hours now and the compilation is still not over for me.
So, that's very unpractical. I'm not going to be able to use FreeBSD for this project since I need to be able to deploy quickly.
Any chance we'll have a package some day? I believe if a port were to be created, it would be the same problem since ports usually compile what they install, but I could be wrong, I'm not sure about the limitations of ports vs packages.
I needed to install Tensorflow 2.1 for a project. Tensorflow is not available in the packages and the port is a very old version of Tensorflow (1.4 if I remember well).
So I tried to compile it from source. And, actually, it seems to be possible to compile Tensorflow for FreeBSD just by downloading the release and issuing a single build command:
Code:
fetch 'https://github.com/tensorflow/tensorflow/archive/v2.1.0.tar.gz'
tar zxvf v2.1.0.tar.gz
cd tensorflow-2.1.0
bazel build -c opt --linkopt=-lexecinfo --host_linkopt=-lexecinfo //tensorflow/tools/pip_package:build_pip_package
(I found this info on these two links: https://github.com/tensorflow/tensorflow/issues/37345 and https://github.com/tensorflow/tensorflow/issues/23613#issuecomment-440757155 )
I did that and it started compiling the thing but the only problem is that it's been more than 24 hours now and the compilation is still not over for me.
So, that's very unpractical. I'm not going to be able to use FreeBSD for this project since I need to be able to deploy quickly.
Any chance we'll have a package some day? I believe if a port were to be created, it would be the same problem since ports usually compile what they install, but I could be wrong, I'm not sure about the limitations of ports vs packages.
Last edited by a moderator: