LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 06:48 AM   #1
yash1990
LQ Newbie
 
Registered: Apr 2018
Posts: 27

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 06:49 AM.
 
Old 05-02-2018, 06:15 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

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

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, 10:04 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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, 10:42 AM   #5
yash1990
LQ Newbie
 
Registered: Apr 2018
Posts: 27

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, 12:20 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
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 12:24 PM.
 
Old 05-05-2018, 03:34 AM   #7
yash1990
LQ Newbie
 
Registered: Apr 2018
Posts: 27

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 03:36 AM.
 
Old 05-06-2018, 01:45 AM   #8
yash1990
LQ Newbie
 
Registered: Apr 2018
Posts: 27

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

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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, 08:43 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
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



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 02:10 PM
suse 10.1 installation issues phillo Linux - General 1 12-08-2006 10:52 PM
SuSe 9.2 installation issues sam_higton SUSE / openSUSE 7 06-10-2005 04:20 AM
SuSE 9.2 Installation Issues mbjunior99 Linux - Newbie 2 11-18-2004 05:07 AM
SuSE Linux installation issues... DeanClean Linux - Newbie 1 10-06-2004 05:46 AM

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

All times are GMT -5. The time now is 10:49 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
Open Source Consulting | Domain Registration