Giter Site home page Giter Site logo

Methods install scripts about srbench HOT 8 CLOSED

cavalab avatar cavalab commented on August 11, 2024 2
Methods install scripts

from srbench.

Comments (8)

foolnotion avatar foolnotion commented on August 11, 2024 1

If you had previously installed operon with sudo make install, the operon folder inside site-packages will belong to root, therefore giving the permissions error. A sudo rm -rf /home/bill/anaconda3/envs/srbench/lib/python3.9/site-packages/operon will probably fix it.

Regarding pkg-config, the important thing is that pkg-config --cflags python3 returns the right thing, since it is needed in the GP-GOMEA build. Adding pkg-config to the environment, therefore enabling it to find all the other packages installed in the env, is the safest way to do it. If it works without it i'd hazard to guess it's only by some happy coincidence :).

from srbench.

lacava avatar lacava commented on August 11, 2024

all sounds good, thanks.

I have to revisit, but sudo was necessary for the GP-GOMEA install. Do you have a suggestion for https://github.com/EpistasisLab/srbench/blob/master/experiment/methods/src/gpgomea_install.sh to get around sudo make?

from srbench.

foolnotion avatar foolnotion commented on August 11, 2024

I just tested again and had no issue installing without sudo, a simple make install works if the install destination is writable, mine is under ~/miniconda3/envs/srbench/lib/python3.9/site-packages/pyGPGOMEA so it does not need any special privileges.

from srbench.

lacava avatar lacava commented on August 11, 2024

I made most of the suggested changes in 727c933 . The github actions workflow passes fine with all sudos removed. Locally, for operon, I am getting this error:

[ 51%] Built target operon
[100%] Built target pyoperon
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/bill/anaconda3/envs/srbench/lib/python3.9/site-packages/operon
CMake Error at cmake_install.cmake:54 (file):
  file INSTALL cannot set permissions on
  "/home/bill/anaconda3/envs/srbench/lib/python3.9/site-packages/operon":
  Operation not permitted.

Other notes:

pkg-config needs to be added to environment.yml, otherwise build scripts relying on it will fail (e.g. GP-GOMEA)

I'm not sure about this since the build scripts are succeeding for GP-GOMEA, using miniconda and the current environment (e.g. https://github.com/EpistasisLab/srbench/runs/2374405169?check_suite_focus=true)

cxxopts is not necessary (operon only needs it for the command-line program, not for the python module)

removed in b217529

from srbench.

lacava avatar lacava commented on August 11, 2024

two issues:

from srbench.

folivetti avatar folivetti commented on August 11, 2024

Regarding 1, installing Haskell stack will only require sudo if one of the requirements are not installed by default. From the top of my head it will require GMP and maybe ffilib.

The second problem is also related to the lack of sudo, it needs to have these libraries installed

GSL
BLAS
LAPACK

from srbench.

folivetti avatar folivetti commented on August 11, 2024

I think you could add the following conda packages in the environment.yml file:

gmp, libffi, gsl, libblas, liblapack

and everything should work (including not requiring a sudo)

from srbench.

lacava avatar lacava commented on August 11, 2024

I believe all of this is resolved now, let me know if you have additional ideas for the install script!

from srbench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.