LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2018, 07:48 AM   #1
yash1990
LQ Newbie
 
Registered: Apr 2018
Posts: 16

Rep: Reputation: Disabled
PHP installation issues + Suse Linux


Hi All,

I am unable to install PHP.
Server: Linux version 4.4.120-92.70-default (gcc version 4.8.5 (SUSE Linux) )

Troubleshooting done from end :

1) Before executing make && make install, I have used make clean
2) Tried installing php 7 and php 5 version, but failed
3) .htaccess is no-where present on server

Below is the error that I get while installing :

ext/dom/.libs/node.o: In function `dom_canonicalization':
/usr/local/src/php-5.6.35/ext/dom/node.c:1901: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/php-5.6.35/ext/dom/node.c:1907: undefined reference to `xmlOutputBufferGetContent'
ext/dom/.libs/documenttype.o: In function `dom_documenttype_internal_subset_read':
/usr/local/src/php-5.6.35/ext/dom/documenttype.c:214: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/php-5.6.35/ext/dom/documenttype.c:214: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/php-5.6.35/ext/dom/documenttype.c:214: undefined reference to `xmlOutputBufferGetContent'
/usr/local/src/php-5.6.35/ext/dom/documenttype.c:214: undefined reference to `xmlOutputBufferGetSize'
ext/simplexml/.libs/simplexml.o: In function `zim_simplexml_element_asXML':
/usr/local/src/php-5.6.35/ext/simplexml/simplexml.c:1434: undefined reference to `xmlOutputBufferGetContent'
/usr/local/src/php-5.6.35/ext/simplexml/simplexml.c:1435: undefined reference to `xmlOutputBufferGetSize'
collect2: error: ld returned 1 exit status
Makefile:254: recipe for target 'sapi/cli/php' failed
make: *** [sapi/cli/php] Error 1

Last edited by yash1990; 05-02-2018 at 07:49 AM.
 
Old 05-02-2018, 07:15 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,482

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Maybe you could install PHP from the repos using yast2.
 
Old 05-03-2018, 07:02 AM   #3
yash1990
LQ Newbie
 
Registered: Apr 2018
Posts: 16

Original Poster
Rep: Reputation: Disabled
Is there any other way to do it. What could you be possible issues with the current installation ?
 
Old 05-03-2018, 11:04 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,482

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
The question is, why do you want to install from source. The system can't keep track of the installation when oyu do that, so PHP could break at any time. Yes, there is another way to do it: install from a source package, which is what you're trying to do. It looks like your missing some dependencies. When you install from source, you have to manually check the dependencies and install them.
 
1 members found this post helpful.
Old 05-03-2018, 11:42 AM   #5
yash1990
LQ Newbie
 
Registered: Apr 2018
Posts: 16

Original Poster
Rep: Reputation: Disabled
As I am new to this, can you please let me know exact steps to install from repos. It is not like that I haven't tried, but it is still not working for me
 
Old 05-03-2018, 01:20 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,701

Rep: Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087
Quote:
Originally Posted by yash1990 View Post
As I am new to this, can you please let me know exact steps to install from repos. It is not like that I haven't tried, but it is still not working for me
So if you don't know how to do it...how, exactly, did you try it??? And instead of "still not working", why don't you tell us exactly what you typed in, and what happened afterwards?

And a VERY quick Google search for "how to install packages from repos on opensuse" gives you the commands.
Code:
zypper install <package name>

Last edited by TB0ne; 05-03-2018 at 01:24 PM.
 
Old 05-05-2018, 04:34 AM   #7
yash1990
LQ Newbie
 
Registered: Apr 2018
Posts: 16

Original Poster
Rep: Reputation: Disabled
Steps that I have followed:

1) Downloaded php version 7 and 5 from http://php.net/downloads.php
2) extracted files
3) ./configure
4) make clean
5) make && make install

I get error as below :

ext/dom/.libs/node.o: In function `dom_canonicalization':
/usr/local/src/php-7.0.29/ext/dom/node.c:1824: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/php-7.0.29/ext/dom/node.c:1830: undefined reference to `xmlOutputBufferGetContent'
ext/dom/.libs/documenttype.o: In function `dom_documenttype_internal_subset_read':
/usr/local/src/php-7.0.29/ext/dom/documenttype.c:194: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/php-7.0.29/ext/dom/documenttype.c:194: undefined reference to `xmlOutputBufferGetContent'
ext/simplexml/.libs/simplexml.o: In function `zim_simplexml_element_asXML':
/usr/local/src/php-7.0.29/ext/simplexml/simplexml.c:1494: undefined reference to `xmlOutputBufferGetContent'
/usr/local/src/php-7.0.29/ext/simplexml/simplexml.c:1495: undefined reference to `xmlOutputBufferGetSize'
collect2: error: ld returned 1 exit status
Makefile:268: recipe for target 'sapi/cli/php' failed
make: *** [sapi/cli/php] Error 1


Also, I tried downloading some rpm from link, but it didn't work:

http://download.opensuse.org/reposit...SLE_12/x86_64/

Last edited by yash1990; 05-05-2018 at 04:36 AM.
 
Old 05-06-2018, 02:45 AM   #8
yash1990
LQ Newbie
 
Registered: Apr 2018
Posts: 16

Original Poster
Rep: Reputation: Disabled
Guys need some help in this case
 
Old 05-06-2018, 08:02 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 9,903
Blog Entries: 7

Rep: Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438Reputation: 2438
you are going in circles:
Quote:
Originally Posted by yash1990 View Post
As I am new to this, can you please let me know exact steps to install from repos.
Quote:
Originally Posted by TB0ne View Post
a VERY quick Google search for "how to install packages from repos on opensuse" gives you the commands.
Code:
zypper install <package name>
there's the answer to your question.
so why:
Quote:
Originally Posted by yash1990 View Post
Guys need some help in this case
???
 
Old 05-06-2018, 09:43 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 20,701

Rep: Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087
Quote:
Originally Posted by yash1990 View Post
Steps that I have followed:
1) Downloaded php version 7 and 5 from http://php.net/downloads.php
2) extracted files
3) ./configure
4) make clean
5) make && make install

I get error as below :
Code:
ext/dom/.libs/node.o: In function `dom_canonicalization':
/usr/local/src/php-7.0.29/ext/dom/node.c:1824: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/php-7.0.29/ext/dom/node.c:1830: undefined reference to `xmlOutputBufferGetContent'
ext/dom/.libs/documenttype.o: In function `dom_documenttype_internal_subset_read':
/usr/local/src/php-7.0.29/ext/dom/documenttype.c:194: undefined reference to `xmlOutputBufferGetSize'
/usr/local/src/php-7.0.29/ext/dom/documenttype.c:194: undefined reference to `xmlOutputBufferGetContent'
ext/simplexml/.libs/simplexml.o: In function `zim_simplexml_element_asXML':
/usr/local/src/php-7.0.29/ext/simplexml/simplexml.c:1494: undefined reference to `xmlOutputBufferGetContent'
/usr/local/src/php-7.0.29/ext/simplexml/simplexml.c:1495: undefined reference to `xmlOutputBufferGetSize'
collect2: error: ld returned 1 exit status
Makefile:268: recipe for target 'sapi/cli/php' failed
make: *** [sapi/cli/php] Error 1
Also, I tried downloading some rpm from link, but it didn't work:
http://download.opensuse.org/reposit...SLE_12/x86_64/
...and, not long later
Quote:
Originally Posted by yash1990
Guys need some help in this case
First, we volunteer our time here. If you want someone to hurry up and help you, then PAY THEM. Use SuSE enterprise, RHEL, or any other commercial Linux distro, can call them with your 'urgent' questions.

And either you are not understanding the answers, or you're just ignoring them. You're not answering questions, and what your posting doesn't make sense. Things we don't know, and you still haven't said:
  • Why are you installing from source??
  • Why do you **NEED** this version of PHP, versus the one on your system and/or available in the repos.
  • Why you didn't install PHP from the repos?
  • What version of SuSE are you using?
You say things like "downloading some rpm and it didn't work"....what, exactly, do you mean by "it didn't work"??? How about an actual error message? You asked, specifically, for a command to use the repositories to install PHP, and (even though you did ZERO research or make any effort to find this easily-found answer), you were given the exact command. And you're still asking.

Since you provide no details and won't answer questions, read the man page on the zypper command. You can then figure out how to search and install packages from there. And from the 'some link' you provided, you're using SLES 12, which you need to be PAYING FOR...since you're paying for it, call SuSE support if you need that 'urgent' help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation Issues with SuSE Linux Enterprise Desktop xeryus Linux - Newbie 1 03-07-2012 03:10 PM
suse 10.1 installation issues phillo Linux - General 1 12-08-2006 11:52 PM
SuSe 9.2 installation issues sam_higton SUSE / openSUSE 7 06-10-2005 05:20 AM
SuSE 9.2 Installation Issues mbjunior99 Linux - Newbie 2 11-18-2004 06:07 AM
SuSE Linux installation issues... DeanClean Linux - Newbie 1 10-06-2004 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration