This forum is no longer active. Please post your questions to our new community site
libfreetype.so.6: cannot open shared object file
|
|
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 Any idea what I can do to fix that? |
|
|
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. |
|
|
Many thanks! Looking forward to your next release. |
|
|
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. |
|
|
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. |
|
|
@beltran, thanks for your help. Do you have an ETA for the release of your new LAMP stack version? |
|
|
Yep, We are uploading the new Stacks, in few hours you can download it :) |
|
|
Released, enjoy! |
|
|
yay! Thanks. I have the feeling i’m whining alot these days, but I can’t install that version either.
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… |
|
|
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:
or try to install in a different directory /home/<user>. Cheers |
|
|
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)... |
|
|
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. |
|
|
Running the installer under a different user in /home/<user> did the trick! Thanks! |

