I have a problem with my gettext locally! My apcahe server is running locally and i try to go to http://localhost/neptunediving.com/ i get this message in my browser;
Fatal error: Call to undefined function bind_textdomain_codeset() in /Users/Jesper/Documents/workspace/neptunediving.com/inc/config.php on line 47
And this means that my gettext i either not installed or not working properly i think?
I have check so that my gettext is installed by doing this,
I created a php script like this,
<?php
phpinfo();
and when i call it i get this configuration-dump where i can check if gettext is on or not. Please look at the attached file here in for more information.
Something is not correct here since i can not see if gettext is up and running from this configuration-dump.
Then after this i have tried to figure out these things from my installation?
I have downloaded macports and gettext and i hope i have installed it right since there is not much i can do different here i think?
Here it is at the moment, /opt/local/var/macports/distfiles/gettext/gettext-0.17
Then after this i have done this;
1. First i run sudo port install gettext and then i go this below here form my terminal window;
Last login: Tue Mar 29 19:25:28 on console
You have new mail.
Jesper-Nyqvists-MacBook-Pro:~ Jesper$ sudo port install gettext
Password:
Warning: port definitions are more than two weeks old, consider using selfupdate
---> Computing dependencies for gettext
---> Cleaning gettext
Jesper-Nyqvists-MacBook-Pro:~ Jesper$ sudo port selfupdate
Password:
Warning: port definitions are more than two weeks old, consider using selfupdate
---> Updating the ports tree
---> Updating MacPorts base sources using rsync
MacPorts base version 1.9.1 installed,
MacPorts base version 1.9.2 downloaded.
---> MacPorts base is outdated, installing new version 1.9.2
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl
The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated
Jesper-Nyqvists-MacBook-Pro:~ Jesper$ sudo port install gettext
Password:
---> Fetching ncursesw
---> Verifying checksum(s) for ncursesw
---> Extracting ncursesw
---> Configuring ncursesw
---> Building ncursesw
---> Staging ncursesw into destroot
---> Installing ncursesw @5.8_0
---> Deactivating ncursesw @5.7_0
---> Cleaning ncursesw
---> Activating ncursesw @5.8_0
---> Cleaning ncursesw
---> Computing dependencies for ncurses
---> Fetching ncurses
---> Attempting to fetch ncurses-5.8.tar.gz from http://mirror.facebook.net/gnu/gnu/ncurses
---> Attempting to fetch ncurses-5.8.tar.gz from http://distfiles.macports.org/ncurses
---> Verifying checksum(s) for ncurses
---> Extracting ncurses
---> Applying patches to ncurses
---> Configuring ncurses
---> Building ncurses
---> Staging ncurses into destroot
---> Computing dependencies for ncurses
---> Installing ncurses @5.8_1
---> Deactivating ncurses @5.7_0
---> Cleaning ncurses
---> Activating ncurses @5.8_1
---> Cleaning ncurses
---> Computing dependencies for gettext
---> Cleaning gettext
Jesper-Nyqvists-MacBook-Pro:~ Jesper$
2. I did this port upgrade outdated;
Last login: Sat Apr 2 13:03:55 on ttys000
You have new mail.
Jesper-Nyqvists-MacBook-Pro:~ Jesper$ port upgrade outdated
Error: No ports matched the given expression
Jesper-Nyqvists-MacBook-Pro:~ Jesper$ sudo port upgrade
Password:
Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /Users/Jesper").
Please verify that the directory and portfile syntax are correct.
To use the current port, you must be in a port's directory.
3. I did this instead;
Jesper-Nyqvists-MacBook-Pro:~ Jesper$ sudo port upgrade outdated
Password:
Error: No ports matched the given expression
Jesper-Nyqvists-MacBook-Pro:~ Jesper$
I think i should have got a long list of components here who should been updated but i don't! I have asked some other people about this and they told me the same thing so i wonder what i do wrong here? So some help and or advice would be highly appreciated?
gettext problem
Moderator: General Moderators
gettext problem
- Attachments
-
- screen dump from configuration-dump
- Screen shot 2011-04-02 at 12.46.01 PM.png (59.63 KiB) Viewed 1093 times
Re: gettext problem
Anybody who knows a good site where this is explained in detail how to setup up gettext?
I run MAC OS 10.6.7 with an apache server, mysql-5.1.50 and php 5.3.4. Everything seems to work fine except my gettext locally, live it works fine.
Anybody out there who knows how to make this work? I would really appreciate the help since i am not a super expert on this just yet!
I run MAC OS 10.6.7 with an apache server, mysql-5.1.50 and php 5.3.4. Everything seems to work fine except my gettext locally, live it works fine.
Anybody out there who knows how to make this work? I would really appreciate the help since i am not a super expert on this just yet!
Re: gettext problem
Please! Are there nobody out there who knows how to set this up???