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

  • Home
  • SEARCH
  • 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 6125893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:18:06+00:00 2026-05-23T16:18:06+00:00

I am trying to build PHP 5.3.6 with Apache 2.0.55 using gcc compiler in

  • 0

I am trying to build PHP 5.3.6 with Apache 2.0.55 using gcc compiler in Solaris 10 SPARC.
My requirement is to build the Static portable binary of php.

Following is the configure statement I used.

./configure \
–enable-static=yes \
–prefix=/opt/genesys/gvp/php \
–with-apxs2=/opt/genesys/gvp/apache/bin/apxs \
–with-config-file-path=/opt/genesys/gvp/apache/conf \
–disable-cli \
–disable-cgi \
–with-zlib-dir=/usr/local \
–enable-bcmath \
–with-curl=/usr/local \
–with-gdbm=/usr/local \
–with-gd \
–with-png-dir=/usr/local \
–with-libxml-dir=/usr/local \
–with-xsl=/usr/local \
–with-gettext \
–with-iconv=/usr/local \
–without-mysql \
–enable-shmop \
–enable-sockets \
–enable-xml \
–with-libexpat-dir=/usr/local \
–with-iconv-dir=/usr/local \
–with-mcrypt=/usr/local \
–without-pear \
–with-openssl=/usr/local/ssl \
–enable-maintainer-zts \
–without-sqlite \
–without-sqlite3 \
–without-pdo-sqlite \
–with-oci8=instantclient,/tmp/instantclient_10_2

I enabled to build with static libraries using –enable-static=yes but still the output of configure shows negative

checking whether stripping libraries is possible… no
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no

Even if I execute ldd on libphp5 after make and make install it still shows it is referring to libraries externally.

Can you please help me how to do the static build? Thanks.

  • 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-05-23T16:18:07+00:00Added an answer on May 23, 2026 at 4:18 pm

    just tried

    ./configure --enable-static

    and output was

    checking whether stripping libraries is possible… yes
    checking if libtool supports shared libraries… yes
    checking whether to build shared libraries… no
    checking whether to build static libraries… yes`

    can’t say that I understand why you have different result

    Can you please verify, it won’t enable static building when you use just simple command as I ?

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

Sidebar

Related Questions

I am trying to build a Connect app using PHP and the Zend Framework.
Using PHP and MySQL, I have a forum system I'm trying to build. What
I am trying to build PHP from source per these instructions. The configure works
I'm using Apache 2.2.X and PHP 5.2.X (installed as Apache module) to build a
Im trying to learn php by doing a little project using apache server. I
I'm trying to build a query using php and mysql, $query = select *
I'm trying to build a JavaServer Faces 2.0 project (using Apache Myfaces 2.0.2 +
I'm trying to build a dynamic php site using MVC principles. I'm using WAMP
I'm trying to build an associative array in PHP dynamically, and not quite getting
Im trying to build call to action button on my site using jQuery. I

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.