[ 
https://issues.apache.org/jira/browse/CASSANDRA-15767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17571870#comment-17571870
 ] 

Stefan Miklosovic edited comment on CASSANDRA-15767 at 7/27/22 11:48 AM:
-------------------------------------------------------------------------

I hit the same issue here https://issues.apache.org/jira/browse/CASSANDRA-17780

I provided a solution so we load always the most recent version of that 
library, irrelevant to what version is installed. Not sure if the version of 
the library is specifically related to Cassandra version or it is basically a 
drop-in replacement though. We could continue on either ticket, not sure what 
you prefer.

BTW I hit the same issue on Debian and Ubuntu, not CentOS.


was (Author: smiklosovic):
I hit the same issue here https://issues.apache.org/jira/browse/CASSANDRA-17780

I provided a solution so we load always the most recent version of that 
library, irrelevant to what version is installed. Not sure if the version of 
the library is specifically related to Cassandra version or it is basically a 
drop-in replacement though. We could continue on either ticket, not sure what 
you prefer.

> /usr/bin/cassandra looking for wrong libjemalloc.so file
> --------------------------------------------------------
>
>                 Key: CASSANDRA-15767
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15767
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Local/Scripts
>            Reporter: Brian Bellrose
>            Priority: Normal
>              Labels: centos8, debian, jemalloc
>
> In /usr/sbin/cassandra
> Linux)
>  if [ -z $CASSANDRA_LIBJEMALLOC ] ; then
>  which ldconfig > /dev/null 2>&1
>  if [ $? = 0 ] ; then
>  # e.g. for CentOS
>  dirs="/lib64 /lib /usr/lib64 /usr/lib `ldconfig -v 2>/dev/null | grep -v 
> '^\s' | sed 's/^\([^:]*\):.*$/\1/'`"
>  else
>  # e.g. for Debian, OpenSUSE
>  dirs="/lib64 /lib /usr/lib64 /usr/lib `cat /etc/ld.so.conf 
> /etc/ld.so.conf.d/*.conf | grep '^/'`"
>  fi
>  dirs=`echo $dirs | tr " " ":"`
>  CASSANDRA_LIBJEMALLOC=$(find_library '.*/libjemalloc\.so\(\.1\)*' $dirs)
>  
> However...
> # find /usr/lib64 -name "*jemalloc*"
> /usr/lib64/libjemalloc.so.2
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to