Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
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.
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
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.
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:
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.