brainvisa / casa-distro

Unified development environment for BrainVISA projects.
2 stars 1 forks source link

Conda dev environment install failure #360

Open denisri opened 4 months ago

denisri commented 4 months ago

I have tried the procedure to start a development environment using conda (conda branch of casa-disto). The script:

sh <(curl -s https://raw.githubusercontent.com/brainvisa/casa-distro/conda/setup/conda/setup) {dir} {package}

ends with the following error:

+ [ ! -e /home/dr144257/casa_distro/condadev/brainvisa-forge ]
+ cd /home/dr144257/casa_distro/condadev/src/casa-distro/setup/conda/rattler-build
+ rattler-build build -r virtualgl --output-dir /home/dr144257/casa_distro/condadev/brainvisa-forge
/dev/fd/63: 74: rattler-build: not found

It seems that is has not activated the conda environment it has just installed. I have also tried to activate it by hand and run again the last 2 lines. But then it fails building VirtualGL (after downloading many packages and building a number of sources):

 │ │ $BUILD_PREFIX/bin/../lib/gcc/x86_64-conda-linux-gnu/13.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: CMa
 │ │ keFiles/eglxfakerut.dir/eglxfakerut.cpp.o: in function `extensionQueryTest()':
 │ │ eglxfakerut.cpp:(.text._Z18extensionQueryTestv+0x4b2): undefined reference to `eglCreatePlatformPixmapSur
 │ │ faceEXT'
 │ │ collect2: error: ld returned 1 exit status
 │ │ make[2]: *** [server/CMakeFiles/eglxfakerut.dir/build.make:98 : bin/eglxfakerut] Erreur 1
 │ │ make[1]: *** [CMakeFiles/Makefile2:1073 : server/CMakeFiles/eglxfakerut.dir/all] Erreur 2
 │ │ make[1]: *** Attente des tâches non terminées....

It seems that there is still a missing dependency...

sapetnioc commented 4 months ago

Oh, yes. rattler-build cannot be used here. It worked for me because I did dot retry a build from scratch after this modification but ran the setup script from an existing Conda environment with rattler-build installed. Anyway, I am changing the way the initial setup will be done so this problem will disappear but I need a bit of time.

denisri commented 4 months ago

Just to add that I could build the virtualgl package after adding the following package:

mamba install mesa-libegl-devel-cos7-x86_64

but I don't know what to do next, so I will wait for you to finish the modifs.

sapetnioc commented 4 months ago

There are new instructions for installation of an environment using an existing conda repository (I just rebuild from scratch an see that there is a compilation problem). The installation is now done using mamba install brainvisa-forge (name is to be discussed). This package, as well as other packages that are not in conda-forge but build by us (such as virtualgl) are not included in the user setup process anymore ; they must be build and deployed in the shared repository by a maintainer before anyone can deploy a development environment. I still have to update instructions to create a repository from scratch including these base packages that are build