[cape2.sh] - jemalloc error
See original GitHub issuePrerequisites
Please answer the following questions for yourself before submitting an issue.
- I checked to make sure that this issue has not already been filed
- I’m reporting the issue to the correct repository (for multi-repository projects)
- I read my log of instalation, all issues will be closed if you don’t do your part of work
- I understand that reporting issue related to any instalation script without instalation log is useless and will be closed
Expected Behavior
jemalloc should install cleanly without any errors
Current Behavior
the execution of cape2.sh ends with an error regarding jemolloc
ln: failed to create symbolic link '/usr/lib/x86_64-linux-gnu/libjemalloc.so': File exists
Failure Information (for bugs)
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
- pull down kvm-aemu.sh
- run
sudo ./kvm-qemu.sh all <username> | tee kvm-qemu.log
- reboot
- pull down capev2.sh
- run
sudo ./cape2.sh base cape | tee cape.log
- observe error at the very end of the execution of cape2.sh
Context
I believe this is a result of running kvm-qemu.sh which installs jemalloc in a different manner, thus resulting in a conflict.
I suspect reusing the logic from kvm-qemu.sh
is a solution, though I’m not confident if that’s the best solution. I am happy to submit a PR with some direction.
As a sidenote, though I don’t think it matter here, I also observed that the file installed via the package in kvm-qemu.sh
is different than the one attempted to be symlink’ed in cape2.sh
# existing symlink
> ls -lhntra /usr/lib/x86_64-linux-gnu/libjemalloc.so
lrwxrwxrwx 1 0 0 16 Apr 2 2020 /usr/lib/x86_64-linux-gnu/libjemalloc.so -> libjemalloc.so.2
# md5 of existing symlink
> md5sum /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
d13aabd3e907425ee2efd7098085eb10 /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
# md5 of attempted symlink
> md5sum /usr/local/lib/libjemalloc.so
c0f484e7e927221673bde6c79348d0e7 /usr/local/lib/libjemalloc.so
Question | Answer |
---|---|
OS version | Ubuntu 20.04 |
Failure Logs
**********************************************************************
Done. The new package has been installed and saved to
/tmp/jemalloc-jemalloc-886e40b/jemalloc-5.2.1_5.2.1-1_amd64.deb
You can remove it from your system anytime using:
dpkg -r jemalloc-5.2.1
**********************************************************************
ln: failed to create symbolic link '/usr/lib/x86_64-linux-gnu/libjemalloc.so': File exists
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
ya i see many people getting this problem with jemalloc, the easier is just add options to apt to overwrite the file and forget, i will add that to both scripts today or tomorrow, thanks
Thank you for testing, glat is was useful, let me know if you see any other bug
El dom., 7 mar. 2021 0:09, zoomequipd notifications@github.com escribió: