Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am setting up a new, dedicated, centos 6.4 system with redis. I have installed redis many times, but have never hit this issue (and have never been on centos 6.4 before).

cd redis-2.6.16
sudo make install

error:

    sh: ./mkreleasehdr.sh: Permission denied
and later:
    zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory
    zmalloc.h:55:2: error: #error "Newer version of jemalloc required"

When I try to build jemalloc directly (from the /src area of the redis tarball), other errors include:

cd src && make jemalloc
sh: ./mkreleasehdr.sh: Permission denied
make[1]: Entering directory `/tmp/rediswork/redis-2.6.16/src'
make[1]: *** No rule to make target `jemalloc'.  Stop.
make[1]: Leaving directory `/tmp/rediswork/redis-2.6.16/src'
make: *** [jemalloc] Error 2

I also tried redis 2.6.7 and have the same issue.

I have dug all over and can find no path forward.

share|improve this question

migrated from serverfault.com Oct 10 '13 at 17:38

This question came from our site for professional system and network administrators.

    

3 Answers 3

I ran into the same issue on centos 6.4 and had to run the following commands:

cd deps
make hiredis jemalloc linenoise lua
cd ..
make install

I am not sure why the deps where not built, I thought they were in the past. However, this got me up and running with the version of redis that I needed.

share|improve this answer
    
Thanks, this worked for me on a centos 6.4 instance on EC2. –  theTuxRacer Feb 19 at 13:55
up vote 3 down vote accepted

On this system /tmp was mounted noexec.

Redis runs a number of shell scripts from /tmp during its install, so the solution is to remount /tmp without the noexec flag. This does this temporarily:

mount -o remount,exec /tmp
share|improve this answer
1  
How in hell does this resolve the error you posted in the question?! –  Michael Hampton Sep 30 '13 at 4:49
    
Hey, I do not know. But I know that a tech I am working with suggested it, and it did solve. I have installed/built redis several times, and have never hit this issue before. –  samsmith Sep 30 '13 at 4:50
    
@MichaelHampton some of the errors are "Access denied" errors during make. Error posted is the first error (I believe, the make output is loooong). –  samsmith Sep 30 '13 at 4:51
3  
You should have posted the complete output. This question and answer make absolutely no sense together. –  Michael Hampton Sep 30 '13 at 4:52
    
Could it be that the system in question s 32bit? @MichaelHampton In that case , try make 32bit. –  Roman M Dec 30 '13 at 9:37

Did you try installing the package it asked for?

yum install jemalloc-devel

This can be found in the EPEL repository, which you should have already added to your CentOS system.

Come to think of it, redis is also in EPEL...

share|improve this answer
    
Yes, I did try that.... didn't help.... solution is above. –  samsmith Sep 30 '13 at 4:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.