DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th June 2011
schh schh is offline
Port Guard
 
Join Date: Jun 2011
Posts: 11
Default Unable to install php5-gd extension

Heya,

I know im running an unsupported version of OpenBSD (4.7), but at the moment ive got a webproject going and dont really have the time to set everything up again, and ive never upgraded before so i dont wanna screw anything up.

To my question.

Im using prestashop webshop on my server and it depends on an php5-gd extension, that depends on some xWindows libs that i dont have or want.

Trying to install php5 extension via package results in:

Can't install php5-gd-5.2.12 because of libraries
|library X11.12.0 not found
| not found anywhere
|library Xpm.8.0 not found
| not found anywhere
|library freetype.17.0 not found
| not found anywhere
Direct dependencies for php5-gd-5.2.12 resolve to: jpeg-7 php5-core-5.2.12p1 t1lib-5.1.0p1 png-1.2.41
Full dependency tree is jpeg-7 libxml-2.7.6 php5-core-5.2.12p1 t1lib-5.1.0p1 gettext-0.17p0 png-1.2.41 libiconv-1.13p0

From ports
Tried setting flavors to no_x11, changed the makefile option use_X11 to no, make install WITHOUT_X11=yes. Nothing is working

Only results in:

===> Checking files for gd-2.0.35p0
`/usr/ports/distfiles/gd-2.0.35.tar.gz' is up to date.
>> (SHA256) gd-2.0.35.tar.gz: OK
===> Verifying specs: jpeg.>=62 png.>=2 iconv.>=2 jpeg.>=62 png.>=2 iconv.>=2 c expat fontconfig freetype m z c expat fontconfig freetype m z
Missing library for fontconfig
Missing library for freetype
Fatal error
*** Error code 1

MySQL 5.1.42
PHP 5.2.12
APACHE 1.3.29

Im at a loss, any help would be appreciated.

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 16th June 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

http://marc.info/?l=openbsd-misc&m=129655292526519&w=2

Quote:
building from ports without a full system installation is not supported, even for no_x11 flavours, and a system without X libraries will seriously restrict the packages you can install.
Not supported.

And if I might anticipate the next question...If I place a Windows 98 exe with known vulnerabilities on a Windows 7 machine, at what point does the Windows 7 machine become vulnerable? When the file is placed on disk, or when the exe is executed?

In other words, as long as you aren't *running* X, your server is safe
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice.

Last edited by rocket357; 16th June 2011 at 02:35 PM.
Reply With Quote
  #3   (View Single Post)  
Old 16th June 2011
schh schh is offline
Port Guard
 
Join Date: Jun 2011
Posts: 11
Default

Ok thanks for your answer, can i just install the x packages with pkg_add or do i have to reinstall?

And why would these ports even have a no_x11 option in the makefile if its not supported one might wonder. Are some ports that depend on these libs installable and others not. Pretty misleading that this option is there if its not supported.
Reply With Quote
  #4   (View Single Post)  
Old 16th June 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by schh View Post
...can i just install the x packages with pkg_add or do i have to reinstall?
Section 4.11 of the FAQ answers this very question.

As for your other question, building ports involves building many dependencies. Building some of these dependencies requires X libraries on occasion. Section 15.4 describes this in more detail:
Quote:
Another common failure is a missing X11 installation. Even if the port you try to build has no
direct dependency on X11, a subpackage of it or its dependencies may require X11 headers
and libraries. Building ports on systems without X11 is not supported, so if you insist on doing
so, you are on your own to figure it out. For many ports, there are, however, "no_x11"
flavored packages available, which you can install without needing X11 on your system.
The requirement for installing X11 before building has not always been mandated. The problem is that too many people were asking "Why does my application not build?" so often that the result was simpler to make it a requirement. Far too many weren't sifting through the details themselves.

Last edited by ocicat; 16th June 2011 at 04:15 PM.
Reply With Quote
  #5   (View Single Post)  
Old 16th June 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

That's right...when I was porting umurmur to OpenBSD, there were no direct/indirect X requirements (umurmur is a very simple program written in C, with very few dependencies), but when I was working on building murmur (the "official" Mumble server), it requires qmake (from qt4) to build...and qt4 requires X. Once murmur is built, it no longer requires qmake, but to build it you need X.

It's far from optimal...but the blame can't be placed on the OpenBSD developers for murmur requiring a build dependency that requires X.

And since the OP needs to upgrade anyways, I personally would just reinstall to 4.9 and kill two birds with one stone...but that's just me.

On OpenBSD-CURRENT:
Code:
# pkg_add php5-gd       
Ambiguous: php5-gd could be php5-gd-5.2.17 php5-gd-5.2.17-no_x11
One more reason to upgrade.
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice.

Last edited by rocket357; 16th June 2011 at 04:41 PM.
Reply With Quote
  #6   (View Single Post)  
Old 16th June 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by rocket357 View Post
I personally would just reinstall to 4.9 and kill two birds with one stone...but that's just me.
Completely agreed.
Reply With Quote
  #7   (View Single Post)  
Old 16th June 2011
schh schh is offline
Port Guard
 
Join Date: Jun 2011
Posts: 11
Default

As soon as my project is done i will reinstall. Now i know better and will be installing all packages in the future.

Great forum, im a very happy camper. Thanks a bunch

/Robert
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install on Alienware m17x BlackSun FreeBSD Installation and Upgrading 3 10th November 2010 01:35 AM
trying to install php5-core Simon OpenBSD Packages and Ports 8 30th June 2010 02:20 PM
Unable to make install on Subversion port Fuitad FreeBSD Ports and Packages 2 28th July 2008 04:49 PM
unable to install Postfix from ports on OBSD 4.3 Pollywog OpenBSD Packages and Ports 25 22nd July 2008 03:32 AM
Problem with upgrading php5-pcre and php5-mysql KernelPanic FreeBSD Ports and Packages 6 16th June 2008 10:00 PM


All times are GMT. The time now is 09:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick