Skip to content

Installation recommendations #265

@ericgonzalezs

Description

@ericgonzalezs

Hi,

I am trying to install smc++. I don't have administrator privileges, so I am trying to install it locally.

I created a python virtual environment where I insatlled numpy. Then I downloaded installed following libraries locally:

Python-3.9.18.tar.xz

gmp-6.3.0.tar.xz

gsl-latest.tar.gz

mpfr-4.2.1.tar.xz

Like this

./configure --prefix=$HOME/local
       make
        make install

All of them, except mpfr, I install it like this:

./configure --prefix=$HOME/local --with-gmp=$HOME/local
make
make install

Finally I added them to my path like this:

export PATH=$HOME/local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=$HOME/local/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=$HOME/local/include:$CPLUS_INCLUDE_PATH

I donwloaded and tried to install smcc++ like this:

git clone https://github.com/popgenmethods/smcpp.git
python setup.py install

After several attempts (including switching Python versions), I am still encountering errors. The most recent one is

etup.py build: smcpp/_smcpp.cpp: At global scope:
smcpp/_smcpp.cpp:34397:18: warning: ‘PyObject* __Pyx_PyDict_GetItem(PyObject*, PyObject*)’ defined but not used [-Wunused-function]
34397 | static PyObject *__Pyx_PyDict_GetItem(PyObject d, PyObject key) {
| ^~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code

Unfortunately, I also can't use Docker as I don't have administrator privileges.

Do you recommend using different versions of the following?

Python-3.9.18.tar.xz, gmp-6.3.0.tar.xz, gsl-latest.tar.gz, mpfr-4.2.1.tar.xz

Any suggestions would be greatly appreciated.

Many thanks,

Eric

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions