Skip to content
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

Conda dev environment install failure #360

Open
denisri opened this issue Mar 4, 2024 · 3 comments
Open

Conda dev environment install failure #360

denisri opened this issue Mar 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@denisri
Copy link
Contributor

denisri commented Mar 4, 2024

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...

@denisri denisri added the bug Something isn't working label Mar 4, 2024
@sapetnioc
Copy link
Member

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
Copy link
Contributor Author

denisri commented Mar 4, 2024

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants