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

Setting custom prefix is ignored during install #124

Open
ForrestCKoch opened this issue Aug 29, 2024 · 2 comments
Open

Setting custom prefix is ignored during install #124

ForrestCKoch opened this issue Aug 29, 2024 · 2 comments

Comments

@ForrestCKoch
Copy link

ForrestCKoch commented Aug 29, 2024

The supplied Makefile ignores the prefix variable set during configuration.

Steps to reproduce:

wget "https://github.com/hasindu2008/slow5tools/releases/download/v1.2.0/slow5tools-v1.2.0-release.tar.gz"
tar -xzf slow5tools-v1.2.0-release.tar.gz
cd slow4tools-v1.2.0
./configure --prefix=$HOME/.local # or any other directory
make
make install

Problem:

make install throws an error

mkdir -p /usr/local/bin
cp -f slow5tools /usr/local/bin
cp: cannot create regular file '/usr/local/bin/slow5tools': Permission denied
make: *** [Makefile:154: install] Error 1

Expected behavior:

The binaries should be installed into the requested location

Possible Solution:

There seem to be two problems. The config.mk file does not set the PREFIX variable. This is what mine looks like.

LIBS = -lhdf5 -lz 
LDFLAGS = 
CPPFLAGS = 

HDF5 = autoconf

disable_hdf5 = 

ifeq "locallibhdf5-no" "locallibhdf5-yes"
    CPPFLAGS += -I./hdf5/include/
    LDFLAGS += hdf5/lib/libhdf5.a -ldl
endif

ifeq "locallibzstd-no" "locallibzstd-yes"
    zstd_local = ../zstd/lib/
    LDFLAGS += zstd/lib/libzstd.a
endif

Even if it did set the PREFIX variable, the Makefile would overwrite at

PREFIX = /usr/local

@hasindu2008
Copy link
Owner

Hello

Thanks for the feedback. Indeed, I have not implemented this PREFIX option. I will get it fixed and released in the next version :)

@hasindu2008
Copy link
Owner

@ForrestCKoch
Could you check if it works for you with the latest slow5tools version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants