用户评论:

[#1]

ariedederde [2011-06-18 00:58:25]

Install php on solaris express:

pkg search php

part of output is e.g.

pkg:/web/php-52@5.2.12-0.151.0.1

pkg install php-52

php binary installs in /usr/php/5.2/bin/php

[#2]

julie at baumler dot com [2006-12-28 21:22:35]

There's a great how-to for Solaris 10 from Mel Lester Jr at http://meljr.com/~meljr/AMPSolaris10.html.

It even shows how to install php in a global zone and configure it in your other zones.

[#3]

francois at tekwire dot net [2006-10-06 01:11:48]

A detailed HOWTO document describing how to build Apache & PHP on Solaris is available at http://www.tekwire.net/redir.php/build_apa_php

This document also explains how to build from scratch every piece of software they can depend on, including almost every Apache modules and PHP extensions : Apache 2.0, PHP V4 & V5, zlib, OpenSSL, OpenLDAP, expat, iconv, mod_jk, xml2, xslt, png, jpeg, freetype, bzip2, curl, imap, MySQL, PostgreSQL, mm.

Also includes a cute dependency diagram making clear the relationships between all these libraries.

[#4]

ozone at cname dot com [2006-01-15 09:46:45]

php >= 5.1.1 requires a fully GNU toolchain on solaris; /usr/ccs/bin/ld will fail to link. see bug 35496.

[#5]

AxL [2005-12-19 10:48:07]

If you have problems building php with sqlite on solaris, add "-lrt" library so you dont get the fdatasync undefined symbol error.

[#6]

anacreo [2004-12-17 20:11:59]

Below was copied from a Sun Forum -- if having problems compiling on Solaris 10 try this:

Re: where is ctid_t defined? (Solaris 10)

Author: Juergen.Keil Nov 17, 2004 10:37 AM (reply 1 of 10)

ctid_t is defined in /usr/include/sys/types.h ("typedef id_t ctid_t;").

I guess what has happend is that you're using a gcc compiler that

was build on Solaris 9 (or some other Solaris release older than

Solaris 10 b69), and this gcc release has a set of "fixed" gcc specific

headers that don't match your s10b69 system headers any more.

The fix is to build a fresh set of gcc "fixed" headers:

# cd /opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/install-tools/

# cat > mkheaders.conf

SHELL=/bin/sh

SYSTEM_HEADER_DIR="/usr/include"

OTHER_FIXINCLUDES_DIRS=""

FIXPROTO_DEFINES="-D_XOPEN_SOURCE"

STMP_FIXPROTO="stmp-fixproto"

STMP_FIXINC="stmp-fixinc"

^D

# ./mkheaders

[#7]

xlark at sdf dot lonestar dot org [2003-07-11 19:48:20]

If you do a "Core Install" of Solaris,  be sure you have installed the SUNWlibm and SUNWlibms packages.  PHP 4.2.3 fails to compile without them.

If you get errors with GCC about math.h, then you don't have them installed.

[#8]

ejflores at alcatel dot es [2003-07-03 06:14:37]

./configure not run fine with /usr/ucb/tr you need to install GNU textutils

[#9]

ineves at iportalmais dot pt [2003-03-07 03:09:11]

I have compiled php 4.2.3, on my solaris 9, sparc, it works, i have gcc 3.2.2, from sunfreeware.org, i have compiled with

./configure --prefix=/opt/php --with-apxs=/opt/apache/bin/apxs --with-pgsql=/opt/pgsql --with-imap=/usr/src/soft/imap-2002b --with-ldap --with-imap-ssl=/usr/local/ssl

It compiles, but when i try to run it says something like:

bash-2.05# /opt/apache/bin/apachectl start

Syntax error on line 205 of /opt/apache/conf/httpd.conf:

Cannot load /opt/apache/libexec/libphp4.so into server: ld.so.1: /opt/apache/bin/httpd: fatal: relocation error: file /opt/apache/libexec/libphp4.so: symbol ldap_start_tls_s: referenced symbol not found

/opt/apache/bin/apachectl start: httpd could not be started

This means that the ldap librarys that came with solaris, are not very fine, you should use from openldap.org packages...

it is using this library:

bash-2.05# ldd /opt/apache/libexec/libphp4.so

...

libldap.so.5 =>  /usr/lib/libldap.so.5

his one is from solaris installation.

(sorry about my english)

[#10]

nicos at php dot net [2003-01-06 07:49:21]

Note that you also need GNU sed or you'll have some errors lile "Output line too long."

[#11]

m at hackerz dot uk dot co [2002-10-15 09:49:50]

Compiled Ok on Solaris 9 after the addition of Bison Flex automake and autoconf, adding /usr/local/bin to the path and linking /usr/ccs/bin/ar to /usr/local/bin/ar.

[#12]

php at woodNO-SPAMstea dot com [2002-06-26 11:15:35]

Howard Glynn's post from May 22 is right on - if you're running Solaris 8, make sure you get the latest Recommended patch cluster. I've been struggling with that library problem that happens when you start Apache for several weeks, tweaking the config, setting LD_LIBRARY_PATH, etc. I couldn't believe that the PHP developers wouldn't have the Solaris build right - seems like a fairly important OS. But the latest Solaris patch cluster fixed the problem, so I guess it was my fault for not being up to date. I'm running PHP 4.2.1 now with Apache 2.0.36, works great.

[#13]

ltfrench at vt dot edu [2002-06-09 14:09:31]

To get PHP 4.2.0 or better to make on Solaris 8 (using gcc and gnu autoconf) you need to:

ln -s /usr/local/bin/gcc /usr/local/bin/cc

See: http://bugs.php.net/bug.php?id=16833

[#14]

howardglynn at hotmail dot com [2002-05-22 10:26:36]

I've had a lot of problems with "dn_skipname" reference errors when trying to do a php / apache shared-library install on solaris 8. All compiling was clean, but could not restart apache with mod_php. After much trial and error, I found a solution by installing patch 109326-07 which has some fixes for resolver (I think). I had one web server without the patch, and one with it, and was able to show the same commands compiling, working and restarting on one, but not the other. Installed patch on machine, compiled clean and was up and running after doing this. Works great. Get the patch from sun.com

[#15]

shane dot kinsch at netracorp dot comNOSPAM [2002-02-17 12:49:56]

PHP 4.1.1 / Apache 1.32 Buile Issues (Solaris 2.8)

Apache build options:

./configure --prefix=/usr/local/etc/apache --enable-module=rewrite --enable-shared=rewrite

PHP build options:

./configure --with-mysql=/usr/local/etc/mysql --with-apxs=/usr/local/etc/apache/bin/apxs

Both Apache and PHP compiled without errors and installed cleanly.

The Error when starting Apache:

Syntax error on line 208 of /usr/local/etc/apache/conf/httpd.conf:

Cannot load /usr/local/etc/apache/libexec/libphp4.so into server:

ld.so.1: /usr/local/etc/apache/bin/httpd: fatal: relocation error: file /usr/local/etc/apache/libexec/libphp4.so: symbol dn_skipname: referenced symbol not found ./apachectl start: httpd could not be started

Line 208 in the httpd.conf file is:

LoadModule php4_module        libexec/libphp4.so

The solution:

For some reason, even though LD_LIBRARY_PATH was being set properly,

it wasn't being read fully.  You will need to create a runtime

linking environment by doing this:

#crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/usr/local/etc/mysql/lib

Shane Kinsch

NetraCorp LLC / SecurNET Consulting

[#16]

Louis at ewens dot com [2001-06-22 19:39:27]

On Solaris, if upon starting Apache you get an error like this:

Syntax error on line 33 of /usr/local/apache/conf/httpd.conf:

Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/loca

l/apache/bin/httpd: fatal: libmysqlclient.so.10: open failed: No such file or directory

./apachectl start: httpd could not be started

..try inserting the following lines into the configuration section of your apachectl startup shell script:

LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/mysql/lib/mysql

export LD_LIBRARY_PATH

Change the /usr/local/mysql/ prefix to where ever your MySQL installation is. Make sure to add on the /lib/mysql extension to your own path though.

Do your normal "apachectl start" command to start Apache and voila, no more error. Apachectl can be found in the bin directory of your Apache installation.

solaris php,针对 Solaris 的安装提示相关推荐

  1. oracle solaris 11用u,前言 - 安装 Oracle Solaris 11 系统

    前言 <安装 Oracle Solaris 11 系统>提供了使用以下任一方法安装和配置 Oracle Solaris 操作系统 (operating system, OS) 的说明: O ...

  2. pip安装提示PermissionError: [WinError 5]错误问题解决

    pip安装提示PermissionError: [WinError 5]错误问题解决 参考文章: (1)pip安装提示PermissionError: [WinError 5]错误问题解决 (2)ht ...

  3. 【原】python3.7 无法pip安装提示ssl错误解决方案

    [原]python3.7 无法pip安装提示ssl错误解决方案 参考文章: (1)[原]python3.7 无法pip安装提示ssl错误解决方案 (2)https://www.cnblogs.com/ ...

  4. WAMP安装提示缺少 msvcr100.dll文件解决方法

    WAMP安装提示缺少wamp msvcr100.dll文件解决方法 因为wamp基于vs c++2010开发,需要提前安装这个组件才可以正常运行 微软官方组件下载地址: 32位:http://www. ...

  5. oracle 依赖包自动安装包,ORACLE 安装提示缺少依赖包

    安装ORALCE 在做检验时提示缺少依赖包,其实是因为系统是64位系统而这些包都是32位的, This is a prerequisite condition to test whether the ...

  6. sqlsever无法重新启动计算机,SQLServer 2008安装提示需要重启计算机,但是重启还是不通过解决方案...

    SQLServer 2008安装提示需要重启计算机,但是重启还是不通过解决方案 有的人可能在SQL 2008安装时提示需要重启计算机,但是重启电脑后还是检测不通过. 处理方法: 在开始-程序-运行中( ...

  7. 安装提示没有安装包docker(转载)

    ----------------安装提示没有安装包docker------------- 因为按照大家认为的Docker 软件包已经包括在默认的 CentOS-Extras 软件源里.因此想要安装 d ...

  8. VMware 安装提示缺少MicrosoftRuntime DLL 问题解决办法

    VMware 安装提示缺少MicrosoftRuntime DLL 问题解决办法 参考文章: (1)VMware 安装提示缺少MicrosoftRuntime DLL 问题解决办法 (2)https: ...

  9. Java 针对每个人安装的位置不同的情况 从快捷方式中获取到安装位置 运行谷歌浏览器

    针对每个人安装的位置不同的情况 从快捷方式中获取到安装位置 运行谷歌浏览器 从桌面的谷歌浏览器快捷方式来获取对应的chrome.exe的地址,然后启动谷歌浏览器展示某个链接(也可以展示本地文件,但是需 ...

最新文章

  1. 第三阶段 10_JavaWeb基础_
  2. Qt Creator分析QML应用程序
  3. 用鼠标去控制物体移动的方法
  4. 华为p7刷android go,华为首款Android GO手机发布 1G内存也流畅
  5. C#—Dev XtraTabControl操作总结如动态增加Tab和关闭选项卡方法等
  6. Android Multimedia框架总结(四)MediaPlayer从Java层到C++层类关系及prepare及之后其他过...
  7. 国科大学习资料--操作系统(杨力祥)--2017年思考题
  8. EXCEL 2016常用知识--Excel基础操作
  9. 小米手机怎么截屏?小米手机区域截屏
  10. 目前我国网络安全人才市场状况
  11. 单层感知器与线性神经网络
  12. 项目实战--Ego微商小程序
  13. ps联盟服务器无响应怎么办,PS联盟网新手教程视频
  14. Linux磁盘的格式化
  15. vue遇到的小白问题之三——按钮的点击效果的实现
  16. easyExcel工具
  17. 如何将CVAT的docker镜像上传到华为云镜像中心SWR
  18. nginx安装教程(centos系统)
  19. Oracle索引简介
  20. Liam的操作系统学习历程(一):xv6 homework 9 Barriers

热门文章

  1. swift 3.0 中使用 xib
  2. org.apache.catalina.LifecycleException: Failed to
  3. mac地址漂移flapping的前因后果
  4. 怀念一下过去的人和事
  5. Oracle触发器和MySQL触发器之间的区别
  6. 《快学Scala》勘误
  7. ADBB的完整形式是什么?
  8. c#queue_带有C#示例的Queue.CopyTo()方法
  9. python函数示例_带Python示例的complex()函数
  10. 计算机应用基础专2020春,计算机应用基础(专)(专,2020春)(20200831130023).pdf