Problem installing ASpell to use with Zend Core

General discussion on Zend Core for IBM System i

Problem installing ASpell to use with Zend Core

Postby revduane on Wed Sep 30, 2009 5:38 pm

Hi,

I have a project where I need to perform spell checking on a web page served from our iSeries machine. I noticed Zend Core had the spell checker compiled into it, and decied to try to use it. When I went to install the ASpell package to support it though, I get an error saying "configure: error: C++ compiler cannot create executables".

Here is the output from the config.log. If anyone could help me with the problem I would appreciate it.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU Aspell configure 0.60.6, which was
generated by GNU Autoconf 2.61. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = S1039839.ARVINSANGO.COM
uname -m = 001000039839
uname -r = 4
uname -s = OS400
uname -v = 5

/usr/bin/uname -p = powerpc
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /QOpenSys/usr/bin
PATH: /QOpenSys/usr/local/adobe/central/bin
PATH: /usr/ccs/bin
PATH: /usr/sbin
PATH: .
PATH: /usr/bin
PATH: /usr/local/Zend/Core/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2025: checking build system type
configure:2043: result: powerpc-ibm-os400
configure:2065: checking host system type
configure:2080: result: powerpc-ibm-os400
configure:2102: checking target system type
configure:2117: result: powerpc-ibm-os400
configure:2160: checking for a BSD-compatible install
configure:2216: result: ./install-sh -c
configure:2227: checking whether build environment is sane
configure:2270: result: yes
configure:2298: checking for a thread-safe mkdir -p
configure:2337: result: ./install-sh -c -d
configure:2350: checking for gawk
configure:2380: result: no
configure:2350: checking for mawk
configure:2380: result: no
configure:2350: checking for nawk
configure:2366: found /QOpenSys/usr/bin/nawk
configure:2377: result: nawk
configure:2388: checking whether make sets $(MAKE)
configure:2409: result: yes
configure:2600: checking whether to enable maintainer-specific portions of Makefiles
configure:2609: result: no
configure:2789: checking for g++
configure:2819: result: no
configure:2789: checking for c++
configure:2819: result: no
configure:2789: checking for gpp
configure:2819: result: no
configure:2789: checking for aCC
configure:2819: result: no
configure:2789: checking for CC
configure:2819: result: no
configure:2789: checking for cxx
configure:2819: result: no
configure:2789: checking for cc++
configure:2819: result: no
configure:2789: checking for cl.exe
configure:2819: result: no
configure:2789: checking for FCC
configure:2819: result: no
configure:2789: checking for KCC
configure:2819: result: no
configure:2789: checking for RCC
configure:2819: result: no
configure:2789: checking for xlC_r
configure:2819: result: no
configure:2789: checking for xlC
configure:2819: result: no
configure:2847: checking for C++ compiler version
configure:2854: g++ --version >&5
./configure[2855]: g++: not found
configure:2857: $? = 127
configure:2864: g++ -v >&5
./configure[2865]: g++: not found
configure:2867: $? = 127
configure:2874: g++ -V >&5
./configure[2875]: g++: not found
configure:2877: $? = 127
configure:2900: checking for C++ compiler default output file name
configure:2927: g++ conftest.cpp >&5
./configure[2928]: g++: not found
configure:2930: $? = 127
configure:2968: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "GNU Aspell"
| #define PACKAGE_TARNAME "aspell"
| #define PACKAGE_VERSION "0.60.6"
| #define PACKAGE_STRING "GNU Aspell 0.60.6"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "aspell"
| #define VERSION "0.60.6"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2974: error: C++ compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=powerpc-ibm-os400
ac_cv_env_CCC_set=''
ac_cv_env_CCC_value=''
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=''
ac_cv_env_CFLAGS_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_CXXCPP_set=''
ac_cv_env_CXXCPP_value=''
ac_cv_env_CXXFLAGS_set=''
ac_cv_env_CXXFLAGS_value=''
ac_cv_env_CXX_set=''
ac_cv_env_CXX_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=powerpc-ibm-os400
ac_cv_prog_AWK=nawk
ac_cv_prog_make_make_set=yes
ac_cv_target=powerpc-ibm-os400

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /aspell-0.60.6/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /aspell-0.60.6/missing --run tar'
AR=''
AUTOCONF='${SHELL} /aspell-0.60.6/missing --run autoconf'
AUTOHEADER='${SHELL} /aspell-0.60.6/missing --run autoheader'
AUTOMAKE='${SHELL} /aspell-0.60.6/missing --run automake-1.10'
AWK='nawk'
CC=''
CCDEPMODE=''
CFLAGS=''
COMPILE_IN_FILTERS_FALSE=''
COMPILE_IN_FILTERS_TRUE=''
CPP=''
CPPFLAGS=''
CURSES_INCLUDE=''
CURSES_LIB=''
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GMSGFMT=''
GMSGFMT_015=''
GREP=''
INCREMENTED_SONAME_FALSE=''
INCREMENTED_SONAME_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
LD=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /aspell-0.60.6/missing --run makeinfo'
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
NM=''
NMEDIT=''
OBJEXT=''
PACKAGE='aspell'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU Aspell'
PACKAGE_STRING='GNU Aspell 0.60.6'
PACKAGE_TARNAME='aspell'
PACKAGE_VERSION='0.60.6'
PATH_SEPARATOR=':'
PERLPROG=''
POSUB=''
PSPELL_COMPATIBILITY_FALSE=''
PSPELL_COMPATIBILITY_TRUE=''
PTHREAD_LIB=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/QOpenSys/usr/bin/sh'
STRIP=''
USE_NLS=''
VERSION='0.60.6'
XGETTEXT=''
XGETTEXT_015=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='powerpc-ibm-os400'
build_alias=''
build_cpu='powerpc'
build_os='os400'
build_vendor='ibm'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='powerpc-ibm-os400'
host_alias=''
host_cpu='powerpc'
host_os='os400'
host_vendor='ibm'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /aspell-0.60.6/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='print -r'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/./install-sh -c -d'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgdatadir='${libdir}/aspell-0.60'
pkgdocdir='${prefix}/share/doc/aspell'
pkglibdir='${libdir}/aspell-0.60'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='powerpc-ibm-os400'
target_alias=''
target_cpu='powerpc'
target_os='os400'
target_vendor='ibm'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "GNU Aspell"
#define PACKAGE_TARNAME "aspell"
#define PACKAGE_VERSION "0.60.6"
#define PACKAGE_STRING "GNU Aspell 0.60.6"
#define PACKAGE_BUGREPORT ""
#define PACKAGE "aspell"
#define VERSION "0.60.6"

configure: exit 77
revduane
 
Posts: 3
Joined: Wed Sep 30, 2009 4:49 pm

Re: Problem installing ASpell to use with Zend Core

Postby timclark2000 on Thu Oct 01, 2009 5:26 pm

I don't know ASpell or have any experience with spell-checking from PHP, so I might be missing something obvious. To me, though, it looks as if your config.log indicates that you don't have a C++ compiler available to PASE on your system. IBM i doesn't ship with one, so that isn't surprising. If you do have one installed, you'll need to make sure that it is available in a path listed in your session's PATH variable. Otherwise, you'll need to install a compiler that will build PASE-compatible (in other words, AIX) binaries. I believe that you can download xlC from IBM for limited trial usage. Alternatively, you can install a version of gcc that has been built for AIX.
timclark2000
 
Posts: 68
Joined: Fri May 01, 2009 8:19 pm

Re: Problem installing ASpell to use with Zend Core

Postby zend_i5 on Sat Oct 03, 2009 9:22 pm

The current Zend Core version includes ASpell extension and ASpell libraries compiled for i5 . Here are instructions for loading a PSPELL dictionary files.
The PSPELL extension requires language dictionaries which are not included in the installation due to the large file sizes. The language dictionaries can be downloaded from the PSPELL site. Below are the instructions how to download and configure a dictionary file.
Dictionary installation
1. Navigate to the dictionary download site: ftp://ftp.gnu.org/gnu/aspell/dict
2. Find the folder with the two or three letter abbreviation for your language. For example, for English dictionaries select the 'en' folder.
3. In the language folder, find the compressed file with a name that starts with 'aspell6-'. If there is no 'aspell6-' file, use the 'aspell5-' file, or the 'aspell-' file if neither of the others is available. For example, the file to use for English is 'aspell6-en-6.0-0.tar.bz2'.
4. Download the compressed dictionary file to your workstation.
5. Unzip and untar the compressed file. You can use a program such as 7-Zip, Winrar, or Izarc to do this. You should end up with a folder named the same as your downloaded file, without the .tar.bz2 suffix. For example, the folder for the English dictionary would be 'aspell6-en-6.0-0'.
6. Copy the folder from the previous step into the root IFS directory on your i5. (iSeries Navigator makes this a simple copy and paste operation).
7. From a 5250 command line, start a PASE environment shell using this command:

CALL QP2TERM

8. Change to the dictionary source file directory: cd <dictionary srcfile> Using our example for English, the command would be:
cd /aspell6-en-6.0-0
9. Run the following commands in the PASE shell:
export ASPELL=/usr/local/Zend/Core/bin/aspell
export PREZIP=/usr/local/Zend/Core/bin/prezip
export PATH=$PATH:/usr/local/Zend/Core/bin
./configure && make && make install
10. Test your language. The following script uses the English language identifier 'en', so for another language, use the suitable identifier in place of 'en':

<?php
$pspell_link = pspell_new("en");
if (pspell_check($pspell_link, "test")) {
echo "This is a valid spelling";
} else {
echo "Sorry, wrong spelling";
}



?>
zend_i5
 
Posts: 158
Joined: Mon Mar 23, 2009 5:22 pm

Re: Problem installing ASpell to use with Zend Core

Postby eli9468 on Wed Mar 23, 2016 6:23 pm

Hi,

Thanks for the posting, the content was very helpful.

I am actually trying to install an ASpell dictionary on an existing ZendServer6 install.

The steps were consistent, except the binaries for both ASpell and Prezip were found in /usr/local/zendsvr6/bin/ rather than /usr/local/Zend/Core/bin/.

I modified the environment variables accordingly:

export ASPELL=/usr/local/zendsvr6/bin/aspell
export PREZIP=/usr/local/zendsvr6/bin/prezip
export PATH=$PATH:/usr/local/zendsvr6/bin

Where I am having issue is running the configure script, I tried running it from the folder, and from the zendsvr6 binary location but get the following error each time:

> pwd
/aspell6-en-2016.01.19-0
$
> ./configure && make && make install
/QOpenSys/usr/bin/-sh: ./configure: not found.
$

> cd /usr/local/zendsvr6/bin/
$
> ./configure && make && make install
/QOpenSys/usr/bin/-sh: ./configure: not found.
$

Do you know why this script isn't available?

Any assistance greatly appreciated.

Thanks,
Eli
eli9468
 
Posts: 1
Joined: Wed Mar 23, 2016 6:16 pm


Return to Zend Core for i5/OS

Who is online

Users browsing this forum: No registered users and 1 guest