This forum is no longer active. Please post your questions to our new community site

Forums LAMPStack

libfreetype.so.6: cannot open shared object file

Subscribe to libfreetype.so.6: cannot open shared object file 13 post(s), 2 voice(s)

 
Avatar Blueprint 8 post(s)

Hello all,

I’m trying to install the LAMP Stack on CentOS 5, but I keep running into this error every time I Install:

Error: Error running /opt/lampstack-1.1-0/php/bin/php -q
/opt/lampstack-1.1-0/php/bin/fixreg.php
/opt/lampstack-1.1-0/php/lib/php/.registry @BITROCK_PHP_ROOT@
/opt/lampstack-1.1-0/php : /opt/lampstack-1.1-0/php/bin/php.bin: error while
loading shared libraries: libfreetype.so.6: cannot open shared object file: No
such file or directory
Press [Enter] to continue :

Any idea what I can do to fix that?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Thanks for reporting it. It is a bug on our side which will be fixed for the next version. You can install libfreetype dependency in your system and reinstall the stack to fix this issue.

Cheers.

 
Avatar Blueprint 8 post(s)

Many thanks!

Looking forward to your next release.

 
Avatar Blueprint 8 post(s)

I tried installing libfreetype and reinstalling the stack, but now I get this error:

Error: Error running /opt/lampstack-1.1-0/php/bin/php -q /opt/lampstack-1.1-0/php/bin/fixreg.php /opt/lampstack-1.1-0/php/etc @@BITROCK_PHP_ROOT@@ /opt/lampstack-1.1-0/php : /opt/lampstack-1.1-0/php/bin/php.bin: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory Press [Enter] to continue :
=======
Error: Error running /opt/lampstack-1.1-0/ctlscript.sh restart apache : httpd: Syntax error on line 106 of /opt/lampstack-1.1-0/apache2/conf/httpd.conf: Cannot load /opt/lampstack-1.1-0/apache2/modules/libphp5.so into server: libfreetype.so.6: wrong ELF class: ELFCLASS64 httpd: Syntax error on line 106 of /opt/lampstack-1.1-0/apache2/conf/httpd.conf: Cannot load /opt/lampstack-1.1-0/apache2/modules/libphp5.so into server: libfreetype.so.6: wrong ELF class: ELFCLASS64 Press [Enter] to continue :

I realize this forum may not be the best place to discuss this issue since it seems to be related to the way I installed libfreetype, but i’m taking a chance anyway. I’m not experienced enough to understand what’s going on, and maybe you have a quick fix…

Thanks for your help.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

You are installing the Stack in a linux 64 bits distribution. You need to install the 32 bits libfreetype libraries. We will probably release a new version tomorrow and you will not need the libfreetype libraries installed.

Cheers.

 
Avatar Blueprint 8 post(s)

@beltran, thanks for your help. Do you have an ETA for the release of your new LAMP stack version?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Yep, We are uploading the new Stacks, in few hours you can download it :)

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Released, enjoy!

 
Avatar Blueprint 8 post(s)

yay! Thanks.

I have the feeling i’m whining alot these days, but I can’t install that version either.
I get this error no matter what folder I install into, and no matter what owner / perms this folder has…

Warning: One of the folders in the /opt/lampstack-1.1-1 path has not executing permissions for 'others'. Plese select a different installation directory.

Again, i’m far from being a pro at this, so sorry if my questions are trivial…

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

The problem is that /opt folder does have executing permissions for “others” and when you try to start MySQL will fail. You have two options:

Tun the following command as root user:

$ chmod 755 /opt

or try to install in a different directory /home/<user>.

Cheers

 
Avatar Blueprint 8 post(s)

I still get that warning message, no matter what folder I install into, and no matter what set of perms I give those folders. :(

drwxr-xr-x 5 root root 4096 Feb 27 14:03 . (/opt)
drwxr-xr-x 2 root root 4096 Feb 27 14:09 lampstack-1.1-1

Even this doesn’t work…

drwxrwxrwx 5 root root 4096 Feb 27 14:03 . (/opt)
drwxrwxrwx 2 root root 4096 Feb 27 14:09 lampstack-1.1-1

I don’t know if it’s of any help, but the rubystack and version 1.1-0 of the lampstack will install just fine with these perms. (except for the libfreetype bug in lampstack 1.1-0)...

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Thanks for reporting it, we will try to reproduce it. Could you install the Stack using a different user, any other user different to “root”?

Cheers.

 
Avatar Blueprint 8 post(s)

Running the installer under a different user in /home/<user> did the trick! Thanks!

Forums LAMPStack