c compile error on implicit declaration

2013-12-10 Thread Gmail
Hi all

I am trying to compile the c code and got the following error.

cc -DIWORDSIZE=4 -DMAX_HISTORY=25 -DNMM_CORE=0  -c -g  registry.c
registry.c:60:3: warning: implicit declaration of function 'sym_forget' is 
invalid in C99 [-Wimplicit-function-declaration]
  sym_forget() ;
  ^

Do anybody have any ideas on it?

Thank you
Bruce

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Undefined symbols for architecture x86_64 error on fortran compiling

2013-12-10 Thread Gmail
Hi all

When I compile a fortran code, I got the error 
Undefined symbols for architecture x86_64

My mac is 64bits. The fortran compiler used here is ifort.

 
Thank you
Bruce___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: How to make c++ realize empty character constant ''?

2013-12-09 Thread Gmail
Hi Chris
Yes, it is fortran code. I am not sure why it uses CPP to compile it. From the 
compilation statement, Fortran code is converted to .b file and then to compile 
it. I am not sure why.


On Dec 9, 2013, at 3:51 AM, Chris Jones jon...@hep.phy.cam.ac.uk wrote:

 
 If you're trying to make a C/C++ string, perhaps you want '\0'. But I
 can't tell what language you are working with or what exactly you are
 trying to accomplish.
 
 The code that was posted by the OP sure isn't C++... Been a while since I 
 used it, but looks like fortran to me..
 

Thank you
Bruce
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


How to make c++ realize empty character constant ''?

2013-12-08 Thread Gmail
Hi all
I am trying to compile the following statements using CPP. 

  IF ( denominator  0 ) THEN
IF ( mod( numerator, denominator ) /= 0 ) THEN
  IF ( numerator  0 ) THEN
WRITE(frac_str,FMT=('+',I2.2,'/',I2.2)) abs(numerator), denominator
  ELSE   ! numerator  0
WRITE(frac_str,FMT=('-',I2.2,'/',I2.2)) abs(numerator), denominator
  ENDIF
ELSE   ! includes numerator == 0 case
  frac_str = ''
ENDIF
  ELSE   ! no-fraction case
frac_str = ''
  ENDIF

However the error is here

cpp -C -P -xassembler-with-cpp 
-I/Users/bruce/Documents/A/model/WRFChem/WRFChem3_5_1/WRFV3/inc -I. -DEM_CORE=1 
-DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 
-DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 
-DNONSTANDARD_SYSTEM_SUBR -DMACOS -DWRF_USE_CLM -DNO_IEEE_MODULE  -DDM_PARALLEL 
-DNETCDF -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 
-DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -traditional -C -P -I. Meat.b 
 Meat.f
Meat.b:869:18: warning: empty character constant [-Winvalid-pp-token]
  frac_str = ''
 ^
Meat.b:872:16: warning: empty character constant [-Winvalid-pp-token]
frac_str = ''
   ^
2 warnings generated.

Does anyone know how to make cpp can compile empty character constant?

Thanks in advance
Bruce


Thank you
Bruce
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: set default gcc among different versions

2013-11-18 Thread Gmail
Hi vq

Thank you so much. I can run gfortran-mp-4.8 directly. In that case, I do not 
need to make it as default fortran compiler.

Thank you
Bruce
On Nov 18, 2013, at 1:11 AM, Lawrence Velázquez lar...@macports.org wrote:

 On Nov 18, 2013, at 2:00 AM, Gmail yangz...@gmail.com wrote:
 
 I have installed 2 versions of gcc. One is from Mac BUILT-IN. The other one 
 is from macports. So how can I make the gcc installed by macports as the 
 default gcc while I compile c program? BTW, in the /opt/local/bin directory, 
 I can find gcc-mp-4.8 and gfortran-mp-4.8, instead of gcc and gfortran. I am 
 not sure if this is correct.
 
 That is correct. The executables are named that way to allow different 
 versions of GCC to be installed simultaneously. You could just run those 
 executables directly.
 
 If you can't or won't do that, you can run sudo port select --set gcc 
 mp-gcc48 to create /opt/local/bin/{gcc,gfortran}, which will be symlinks to 
 the actual executables.
 
 vq

Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage : http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


no .mod files in netcdf library directory

2013-11-17 Thread Gmail
Hi all

I used macports to install netcdf. However there is no .mod files in netcdf 
library directory. When I compiler a fortran code which uses netcdf, the 
netcdf.mod can not be found. So does someone know why?


Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage : http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: gnudatalanguage update

2013-11-17 Thread Gmail
I have initiated a ticket on sourceforge.net about the support of 
gnudatalanguage for Mavericks. I am not sure this is the most efficient way to 
report the bug to the developer. If there is some other way to get this work 
more efficiently?

Thank you
Bruce 
On Nov 16, 2013, at 2:04 PM, Ryan Schmidt ryandes...@macports.org wrote:

 
 On Nov 16, 2013, at 10:14, Gmail yangz...@gmail.com wrote:
 
 Can anybody do me a favor to update gnudatalanguage? So that it can support 
 for newest Mac OS X Mavericks.
 
 The gnudatalanguage port is at version 0.9.4. That is the latest version 
 available from the developers, and as you have discovered, it does not build 
 on Mavericks. If you can work with the developers to get this problem fixed, 
 and to get them to release a new version containing that fix, then we can 
 update the port to that new version.
 
 For reference, here is the MacPorts ticket for this issue: 
 https://trac.macports.org/ticket/40988

Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage : http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


set default gcc among different versions

2013-11-17 Thread Gmail
Hi all

I have installed 2 versions of gcc. One is from Mac BUILT-IN. The other one is 
from macports. So how can I make the gcc installed by macports as the default 
gcc while I compile c program? BTW, in the /opt/local/bin directory, I can find 
gcc-mp-4.8 and gfortran-mp-4.8, instead of gcc and gfortran. I am not sure if 
this is correct.


Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage : http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


gnudatalanguage update

2013-11-16 Thread Gmail
Hi all

Can anybody do me a favor to update gnudatalanguage? So that it can support for 
newest Mac OS X Mavericks.

Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage : http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: error on installing cmake

2013-11-14 Thread Gmail
Actually I am not sure that. I uninstalled Xcode 5.0.2 gotten from app store 
and installed Xcode 5.0.1 from apple developer website. Then restart my mac. it 
seemed it worked.


On Nov 14, 2013, at 10:10 AM, Ryan Schmidt ryandes...@macports.org wrote:

 
 On Nov 14, 2013, at 10:00, zhifeng yang yangz...@gmail.com wrote:
 
 Both of Xcode 5.0.1 and Xcode 5.0.2 are tried from dmg file and app store. 
 Unfortunately they are not working. Here is the main.log for installing 
 gnudatalanguage using Xcode 5.0.2 from app store. I have modified 
 gnudatalanguage portfile by removing platform darwin block. If I do not 
 remove the block, it is not supported by Mavericks.
 
 …right, gnudatalanguage does not build on Mavericks right now. That’s why the 
 “platform darwin” block is there: to tell you that.
 
 The subject line of this email thread says “error on installing cmake”. 
 That’s what I was trying to help you resolve, by investigating how you 
 installed Xcode. Are you saying you already resolved that issue and were able 
 to install cmake? If so, what did you change to make it work?
 
 
 

Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage : http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


error on installing gnudatalanguage

2013-11-14 Thread Gmail

On Nov 14, 2013, at 10:00 AM, zhifeng yang yangz...@gmail.com wrote:

 Both of Xcode 5.0.1 and Xcode 5.0.2 are tried from dmg file and app store. 
 Unfortunately they are not working. Here is the main.log for installing 
 gnudatalanguage using Xcode 5.0.2 from app store. I have modified 
 gnudatalanguage portfile by removing platform darwin block. If I do not 
 remove the block, it is not supported by Mavericks.
 
 main.log
 
 Thank you
 Zhifeng (Bruce) Yang
 Department of Earth and Atmospheric Sciences
 University of Nebraska-Lincoln
 Homepage : http://zyang01.com/
 
 On Nov 14, 2013, at 6:32 AM, Ryan Schmidt ryandes...@macports.org wrote:
 
 
 On Nov 13, 2013, at 19:35, Gmail wrote:
 
 However I got the following error installing cmake using macports. That’s 
 why I install cmake separately.
 
 We’ve had a few other reports of similar cmake build errors with Xcode 5.0.1.
 
 One user said upgrading to Xcode 5.0.2 fixed the problem; try that.
 
 Also, at least one user reporting the problem had installed Xcode 5.0.1 
 using a dmg downloaded from the Apple developer web site; meanwhile many 
 other users including myself who have installed Xcode 5.0.1 from the Mac App 
 Store have not experienced this problem. How did you install Xcode?
 
 

Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage : http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


error on installing cmake

2013-11-13 Thread Gmail
Hi all

I successfully installed cmake separately, not using macports. However when I 
try to install gdl3, it still include cmake as dependency. macports still try 
to install cmake, without knowing cmake is already installed. So what should I 
do to make macports know that I have installed cmake and where I have installed 
cmake. Any help is welcome. I real appreciate it.

Thank you
Bruce

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: error on installing cmake

2013-11-13 Thread Gmail
However I got the following error installing cmake using macports. That’s why I install cmake separately.Here is the log file.

main.log
Description: Binary data
On Nov 13, 2013, at 7:32 PM, Brandon Allbery allber...@gmail.com wrote:On Wed, Nov 13, 2013 at 8:26 PM, Gmail yangz...@gmail.com wrote:
I successfully installed cmake separately, not using macports. However when I try to install gdl3, it still include cmake as dependency. macports still try to install cmake, without knowing cmake is already installed. So what should I do to make macports know that I have installed cmake and where I have installed cmake. Any help is welcome. I real appreciate it.
You don't. MacPorts uses only its own, for good reason.http://trac.macports.org/wiki/FAQ#ownlibs-- 
brandon s allbery kf8nhsine nomine associatesallber...@gmail.com ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net


Thank youZhifeng (Bruce) YangDepartment of Earthand AtmosphericSciencesUniversity ofNebraska-LincolnHomepage :http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: error on installing cmake

2013-11-13 Thread Gmail
I have installed GDL and GDL3 using macports. However I can not find their bin 
in /opt/local/bin directory. Even macports directory I can not find them. Maybe 
they do not have bin file? If so, how can I run GDL?


On Nov 13, 2013, at 8:16 PM, Brandon Allbery allber...@gmail.com wrote:

 On Wed, Nov 13, 2013 at 8:35 PM, Gmail yangz...@gmail.com wrote:
 However I got the following error installing cmake using macports. That’s why 
 I install cmake separately.
 
 http://trac.macports.org/ticket/41212
 
 Looks like only some users are seeing it and it may depend on how Xcode was 
 installed. (Possibly some installation methods require you to run it once to 
 finish setting itself up?)
 
 -- 
 brandon s allbery kf8nh   sine nomine associates
 allber...@gmail.com  ballb...@sinenomine.net
 unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net

Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage : http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: error on installing cmake

2013-11-13 Thread Gmail
Yes, actually I am trying to install IDL compiler on mac. However currently 
gnudatalanguage can not installed on Mavericks of mac. So do you how I can 
solve this problem to compile IDL.

GDL means “GNU Data Language


On Nov 13, 2013, at 8:29 PM, Brandon Allbery allber...@gmail.com wrote:

 gnudatalang

Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage : http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: error on installing cmake

2013-11-13 Thread Gmail
GNU Data Language

So do you know how can I install it on mac?


On Nov 13, 2013, at 8:34 PM, Eric Gallager eg...@gwmail.gwu.edu wrote:

 By gdl do you mean the GNOME Docking Library or the GNU Data Language? 
 (The ports should really make this distinction clearer in their respective 
 descriptions...)
 
 
 
 On Wed, Nov 13, 2013 at 9:18 PM, Gmail yangz...@gmail.com wrote:
 I have installed GDL and GDL3 using macports. However I can not find their 
 bin in /opt/local/bin directory. Even macports directory I can not find them. 
 Maybe they do not have bin file? If so, how can I run GDL?
 
 
 On Nov 13, 2013, at 8:16 PM, Brandon Allbery allber...@gmail.com wrote:
 
 On Wed, Nov 13, 2013 at 8:35 PM, Gmail yangz...@gmail.com wrote:
 However I got the following error installing cmake using macports. That’s 
 why I install cmake separately.
 
 http://trac.macports.org/ticket/41212
 
 Looks like only some users are seeing it and it may depend on how Xcode was 
 installed. (Possibly some installation methods require you to run it once to 
 finish setting itself up?)
 
 -- 
 brandon s allbery kf8nh   sine nomine associates
 allber...@gmail.com  ballb...@sinenomine.net
 unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net
 
 Thank you
 Zhifeng (Bruce) Yang
 Department of Earth and Atmospheric Sciences
 University of Nebraska-Lincoln
 Homepage : http://zyang01.com/
 
 
 ___
 macports-users mailing list
 macports-users@lists.macosforge.org
 https://lists.macosforge.org/mailman/listinfo/macports-users
 
 

Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage : http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: error on installing cmake

2013-11-13 Thread Gmail
Then I got the following error.

Portfile changed since last build; discarding previous state.
Error: port lookup failed: too many nested evaluations (infinite loop?)
Error: Unable to execute port: upgrade cmake failed

I have looked up online and have not found answers


On Nov 13, 2013, at 8:41 PM, Brandon Allbery allber...@gmail.com wrote:

 On Wed, Nov 13, 2013 at 9:36 PM, Gmail yangz...@gmail.com wrote:
 GNU Data Language
 So do you know how can I install it on mac?
 
 The error noted in the Portfile immediately makes me think it's not so much a 
 Mavericks as a clang issue... and http://trac.macports.org/ticket/40988 
 agrees. You could edit the Portfile locally (sudo port edit 
 gnudatalanguage) to remove the platform darwin block, and then build it 
 with
 
 sudo port install gnudatalanguage configure.compiler=macports-gcc-4.8
 
 -- 
 brandon s allbery kf8nh   sine nomine associates
 allber...@gmail.com  ballb...@sinenomine.net
 unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net

Thank you
Zhifeng (Bruce) Yang
Department of Earth and Atmospheric Sciences
University of Nebraska-Lincoln
Homepage : http://zyang01.com/

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


error on installing cmake

2013-11-12 Thread Gmail
Hi all

I got the following error when I try to install cmake 2.8.12 on my iMac with 
Mavericks.


version:1
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Executing org.macports.main (cmake)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (cmake)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (cmake)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (cmake)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (cmake)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (cmake)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Tue Nov 12 06:17:31 CST 2013
:notice:configure ---  Configuring cmake
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (cmake)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -Os 
-arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -Os -arch x86_64' 
LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.9' 
CMAKE_PREFIX_PATH='/opt/local' CXX='/usr/bin/clang++' 
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/.CC_PRINT_OPTIONS'
 F90FLAGS='-pipe -Os -m64' LDFLAGS='-L/opt/local/lib 
-Wl,-headerpad_max_install_names -arch x86_64' FCFLAGS='-pipe -Os -m64' 
OBJC='/usr/bin/clang' OBJCXX='/usr/bin/clang++' INSTALL='/usr/bin/install -c' 
CMAKE_INCLUDE_PATH='/opt/local/include/ncurses' 
CMAKE_LIBRARY_PATH='/opt/local/lib' FFLAGS='-pipe -Os -m64' OBJCXXFLAGS='-pipe 
-Os -arch x86_64' OBJCFLAGS='-pipe -Os -arch x86_64' CC_PRINT_OPTIONS='YES' 
CC='/usr/bin/clang'
:debug:configure Assembled command: 'cd 
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-2.8.12
  ./configure --prefix=/opt/local --mandir=/share/man 
--docdir=/share/doc/cmake --parallel=8 
--init=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-2.8.12/macports.cmake'
:debug:configure Executing command line:  cd 
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-2.8.12
  ./configure --prefix=/opt/local --mandir=/share/man 
--docdir=/share/doc/cmake --parallel=8 
--init=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-2.8.12/macports.cmake
:info:configure -
:info:configure CMake 2.8.12, Copyright 2000-2012 Kitware, Inc.
:info:configure -
:info:configure Error when bootstrapping CMake:
:info:configure Cannot find appropriate C compiler on this system.
:info:configure Please specify one using environment variable CC.
:info:configure See cmake_bootstrap.log for compilers attempted.
:info:configure
:info:configure -
:info:configure Log of errors: 
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-2.8.12/Bootstrap.cmk/cmake_bootstrap.log
:info:configure -
:info:configure Command failed:  cd 
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-2.8.12
  ./configure --prefix=/opt/local --mandir=/share/man 
--docdir=/share/doc/cmake --parallel=8 
--init=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-2.8.12/macports.cmake
:info:configure Exit code: 6
:error:configure org.macports.configure for port cmake returned: configure 
failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
while executing
$procedure $targetname
:info:configure Warning: targets not executed for cmake: org.macports.activate 
org.macports.configure org.macports.build org.macports.destroot 
org.macports.install
:error:configure Failed to install cmake
:debug:configure couldn't open 
/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex: no 
such file or directory
while executing
open [file join $dir tclIndex]

Can't seem to get PHP function exif_read_data to work

2012-01-12 Thread g...@gulik.org Gmail


I'm having a weird problem where I can't get the PHP exif module to 
work.  It IS installed but I get the error  *Fatal error*: Call to 
undefined function exif_read_data() in.. in my script.



# port list installed | grep php
php5   @5.3.8  lang/php5
php5-exif  @5.3.8  php/php5-exif
php5-geoip @1.0.7  php/php5-geoip
php5-iconv @5.3.8  php/php5-iconv
php5-intl  @5.3.8  php/php5-intl
php5-intl  @5.3.8  php/php5-intl
php5-mbstring  @5.3.8  php/php5-mbstring
php5-mcrypt@5.3.8  php/php5-mcrypt
php5-mysql @5.3.8  php/php5-mysql
php5-openssl   @5.3.8  php/php5-openssl
php5-sqlite@5.3.8  php/php5-sqlite


I'm pretty new to macports so I've run out of ideas why it's not working.
I did check the output of the phpinfo() function and no references to 
EXIF show up there.


--
Greg Gulik http://www.gulik.com/greg/
greg @ gulik.com


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Can't seem to get PHP function exif_read_data to work

2012-01-12 Thread g...@gulik.org Gmail
Ok, it's only not working with Apache.  I wrote a small test script that 
works fine but not when a web page is calling that function.


Per your instructions:
# port contents php5-exif
Port php5-exif contains:
  /opt/local/lib/php/extensions/no-debug-non-zts-20090626/exif.so
  /opt/local/var/db/php5/exif.ini

Oh wait, now it's there.  What the hell.  I even restarted Apache and it 
still didn't load but now exif.ini is being loaded and the function IS 
working.



Configuration File (php.ini) Path   /opt/local/etc/php5
Loaded Configuration File   /opt/local/etc/php5/php.ini
Scan this dir for additional .ini files /opt/local/var/db/php5
Additional .ini files parsed 	/*opt/local/var/db/php5/exif.ini,* 
/opt/local/var/db/php5/geoip.ini, /opt/local/var/db/php5/iconv.ini, 
/opt/local/var/db/php5/intl.ini, /opt/local/var/db/php5/mbstring.ini, 
/opt/local/var/db/php5/mcrypt.ini, /opt/local/var/db/php5/mysql.ini, 
/opt/local/var/db/php5/openssl.ini, /opt/local/var/db/php5/sqlite.ini




Thanks for your help.


On 1/12/12 11:37 AM, Aljaž Srebrnič wrote:

Well, you could do a $port contents php5-exif and see where all the
files are installed, and check if that directory is in you PHP
include_path! :)

g...@gulik.org Gmail wrote:

I'm having a weird problem where I can't get the PHP exif module to
work.  It IS installed but I get the error  *Fatal error*: Call to
undefined function exif_read_data() in.. in my script.


# port list installed | grep php
php5   @5.3.8  lang/php5
php5-exif  @5.3.8  php/php5-exif
php5-geoip @1.0.7  php/php5-geoip
php5-iconv @5.3.8  php/php5-iconv
php5-intl  @5.3.8  php/php5-intl
php5-intl  @5.3.8  php/php5-intl
php5-mbstring  @5.3.8  php/php5-mbstring
php5-mcrypt@5.3.8  php/php5-mcrypt
php5-mysql @5.3.8  php/php5-mysql
php5-openssl   @5.3.8  php/php5-openssl
php5-sqlite@5.3.8  php/php5-sqlite


I'm pretty new to macports so I've run out of ideas why it's not working.
I did check the output of the phpinfo() function and no references to
EXIF show up there.

--
Greg Gulik http://www.gulik.com/greg/
greg @ gulik.com

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


--
Greg Gulik http://www.gulik.com/greg/
greg @ gulik.com


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Emacs not launching independent Xwindow (emacs shell)

2011-01-18 Thread gmail

I have installed macports and use many of the other applications without
problems.  I have had a problem in getting any of the emacs versions to
provide a x-window in the command  ³emacs test ² which should launch GNU
emacs into its own window as in a Linux environment.

I have X11 working properly on my Mac as I get xclock and other X11
dependent objects/programs to work fine so it isn¹t the display variable or
anything like this that I am aware of as I have tested many things.

Is there a trick to get around the emacs that is already installed on the
Macbook Pro and Air?  I have tried both of these laptops and they both have
the same problem with emacs from macports even though it is supposed to be
the GNU emacs which supports the emacs program shell.

Your help would be greatly appreciated.

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Emacs not launching independent Xwindow (emacs shell)

2011-01-18 Thread gmail
Thanks Dan!  I didn't understand what this meant at first, but for those who
need this in the future, it means you need to install emacs as usual and
then add the variant (xll, gtk, etc) which you can search for in the
install.

To get the emacs to look like a fresh Linux GNU emacs without using xemacs
just do:

port install emacs +x11



On 1/18/11 3:34 PM, Dan Ports dpo...@macports.org wrote:

 On Tue, Jan 18, 2011 at 03:22:58PM -0800, gmail wrote:
 I have installed macports and use many of the other applications without
 problems.  I have had a problem in getting any of the emacs versions to
 provide a x-window in the command  ?emacs test ? which should launch GNU
 emacs into its own window as in a Linux environment.
 
 Did you install emacs with the +x11 or +gtk (for a prettier interface)
 variant set? Otherwise, you'll just get console-mode emacs.
 
 Dan


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users