Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9030757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:34:10+00:00 2026-06-16T07:34:10+00:00

ORIGINAL POST First of all, I want to install memcached , not memcache. I’m

  • 0

ORIGINAL POST

First of all, I want to install memcached, not memcache.

I’m trying to set up memcached to work with my lampp server on ubuntu 12.10 since yesterday. I’ve already followed almost every tutorial I could find. The most recent thing, I tried to do was:

in terminal

apt-get install libmemcached-dev 
cd /opt/lampp
./bin/pecl install memcached

and then adding extension=”memcached.so” in php.ini file. After this I restarted lampp using /opt/lampp/lampp restart

When I tried to open php script in my browser it just got downloaded. Running tail -20 /opt/lampp/logs/php_error_logthis is what I see:

PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/memcached.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/memcached.so: wrong ELF class: ELFCLASS64 in Unknown on line 0

It seems this guy had same problem but with different extension. When I try to compile 32 bit version of the extension using:

phpize
CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 ./configure
make

But make throws the following error:

/usr/bin/ld: skipping incompatible /usr/local/lib/libmemcached.so when searching for -lmemcached
/usr/bin/ld: cannot find -lmemcached
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make: *** [memcached.la] Error 1

The problem is that I don’t even know if I’m on the right path. If someone could write short step-by-step guide how to get this working or just show me where the issue is it would be great.

UPDATE

After executing sudo dpkg --add-architecture i386 sudo apg-get update sudo apt-get install libmemcached-dev:i386 libz-dev:i386 and phpize CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 ./configure make memcached compiles fine. It still doesn’t work however. After checking php error logs again I get this

PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/memcached.so' - /opt/lampp/lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/i386-linux-gnu/libstdc++.so.6) in Unknown on line 0
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:34:11+00:00Added an answer on June 16, 2026 at 7:34 am

    You are on the right path – your lampp is 32bit while rest of the system (i assume) is 64bit. So when you installed libmemcached an compiled php-libmemcached it is 64bit version. That’s why you get the “Wrong ELF class” error.

    Before you can compile 32bit version of php-memchached you need to install 32bit versions of libmemcached and libz (and their headers).

    You need to:
    sudo dpkg --add-architecture i386
    sudo apg-get update
    sudo apt-get install libmemcached-dev:i386 libz-dev:i386

    I think that should be enough to let you compile 32bit version of php-libmemcached.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Original Post: I am trying to use the Client-side Authentication with the Javascript SDK
UPDATE: I should have mentioned in the original post that I want to learn
original string is a,d,k I want to remove all , and make it to
I made an original post here At first, I tried to fill up a
My first post here, please be gentle. =) I work for a company that
Background First of all, much gratitude to atebits for their very informative blog post
This post is divided to two major sections. The first section introduces the original
Refer original post here for a reference to the original issue. What plugin should
Note I have completely re-written my original post to better explain the issue I
this is an edit of the original post now that I better understand the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.