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
redis 2.6 stable install fail on Ubuntu 12.04.1 LTS #722
Comments
maybe you need to install jemalloc. you can download it from below site. |
after install jemalloc sudo make install cd src && make install |
Hi ardsu. When did you download redis 2.6.0 stable? maybe I think you downloaded 2.6.0-rc8, It is same symptom when I downloaded 2.6.0-rc8, try to download 2.6.0 in redis.io. |
thanks for answer. |
hi ardsu and antirez, I think it is not only because of sync_file_range. The behavior of Makefile is somewhat different. I found that it doesn't run "cd deps; make hiredis lua jemalloc linenoise" , try this https://github.com/charsyam/redis-2.6.0-rh5.git maybe you can build it well |
successed install redis 2.6.2 . |
I just had the same problem with 2.6.4 - have to manually (I also had to install the download instructions on the website currently say:
|
The same with @anentropic on Ubuntu JeOS 12.04. |
Hello, I just tested under Ubuntu 12.04 without any issue at all following the same instructions... so without further details I'm unlikely to be able to fix this for lack of reproducibility. Cheers, |
@guersam is it 32bit? or 64bit OS? |
I tried with both btw (make 32 also). My ubuntu ships with make version 3.81 On Thu, Nov 22, 2012 at 10:55 AM, charsyam notifications@github.com wrote:
Salvatore 'antirez' Sanfilippo Beauty is more important in computing than anywhere else in technology |
I'm using the following EC2 AMI provided by Ubuntu: AMI: ubuntu/images/ebs/ubuntu-precise-12.04-amd64-server-20121001 (ami-c1aaabb5) |
Please could you report the full output of the failed compilation? Thanks. |
I try to reproduce this bug m1.small ec2 64bit ubuntu 12.04 but it compiled well 2.6.4 |
I think maybe doing I have just reproduced using a clean instance of the AMI I gave above (ami-c1aaabb5). I do:
I note that it says I then try Redis again:
Fail, but I am able to install Redis by following the extra steps:
I was also able to install Redis following the instructions from the website on another instance, where I had already installed other software. I guess one of them had installed the prerequisites for me. |
@anentropic @antirez I finally found the reason. it is because of .make-* files exactly. it is because of src/.make-* files. and make again. It will work well!. @antirez. I have a question why do you use .make-prerequisites? It is just from my curious. thank you. hmm. In Makefile, there is distclean option. make distclean |
@charsyam It was 64bit, but you already found out the clue, thanks! |
I'm had the same issue building the latest stable (2.6.9) on Debian Squeeze 64. zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory I don't know what jemalloc is, and it doesnt' seem to be available from apt-get The fix posted above seems to have fixed it: cd deps Are these steps supposed to be necessary? If so please could they be added to the installation notes on the download page? |
@bgSosh I think you need "make distclean" |
@charsyam I tryed "make distclean". But the issue still exist. [root@localhost redis-2.6.10]# make help!! |
@superqbb hi. I am sorry, I don't know your situation. Plz, Just try next step: [root@localhost redis-2.6.10]# apt-get install build-essential good luck. |
see issue #706 |
|
I faced this issue but in a really weird way. I have 2 micro instances using Amazon Kernel : The weird thing was that in the first, the make runs flawlessly. In the 2nd I compiled the deps first. Still trying to dig what happened there. |
got the same issue that jemalloc.h was not found, with redis redis-2.6.16, on ubuntu server 12.0.4..3 LTS. and Following instructrions describes by @anentropic solved it. |
redis#722 This fix proposes to make the `install` rule to depends on a new one, named `deps`, that builds first all dependencies. Tested on Ubuntu 12.0.4.3 LTS.
Same situation with redis-2.8.7 on Ubuntu 12.0.4.3 LTS. Simple proposal to fix this issue: ic@f3fb4b2 |
Hello, thanks for reporting this issue. The proposed fix is not the right one IMHO, since the Makefile, in theory (read: even if it is not working in some case) should build dependencies by forcing the ".make-prerequisite" target as first. Basically every object depends on
And .make-prerequisites depends on
However the above is only optionally included, depending on the fact that the current CFLAGS are the same as the one generated previously. I've some feeling that the following line is not working as expected in certain setups:
I'll try to reproduce here to see if I can fix it, I use Ubuntu extensively and I never seen anything like that. |
I just hit this same issue with a clean install of Ubuntu 14.04 server on a physical machine. |
A |
Same issue with redis(2.8) on Ubuntu 12.04.Make distclean fixed it. |
Sorry: not Redis2.6* but this page is a likely hit and this will help someone I hope: redis-2.8.9 .::. 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux v--- \o/ All tests passed without errors! Cleanup: may take some time... OK ^--- this was on a Azure Ubuntu VM. Good grief what a disaster. I basically used this post and comments to play whack-a-mole with the half-dozen or so out-of-the-box missing dependencies issues. FWIW, on a clean Azure/Ubuntu image apt-get update / upgrade / build-essential as baseline, as indicated above additional apt-get install of make and gcc were required. As above manual make of deps/* required. And finally, apt-get install tcl in order to execute your final make test. |
Same issue here with 2.8.13, this solved it: |
"Simple" way to reproduce it: create a new droplet for Ubuntu 14.04 x64 at digitalocean (I'm not associated to it in any way); download redis 2.8.13; apt-get install the bare minimum to be able to compile it; make; link step fails as mentioned in the third comment. |
The first answer on this link solved my problem |
|
make distclean also worked for me, make clean nope. |
编译的时候会出现一些怪问题, 如我在挂载的NTFS盘下,就无法编译,而移到ext4下就可以编译! |
FYI, I found this happens when: Thus a distclean fixes this out-of-order execution problem. |
make distclean has also worked for me. Thanks for the tip! |
I came across this same issue with installing 3.2 from source on ubuntu 14.04. Echoing @McFarts that adding |
This thread saved me. A simple |
Following steps worked for me:
|
Just wanted to add that I had to run make distclean as sudo to get this working. |
sudo make install
make[1]: Entering directory
/home/richard/redis-2.6.0/src' CC adlist.o In file included from adlist.c:34:0: zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory compilation terminated. make[1]: *** [adlist.o] Error 1 make[1]: Leaving directory
/home/richard/redis-2.6.0/src'make: *** [install] Error 2
The text was updated successfully, but these errors were encountered: