Thread: Compiling pgAgent on FreeBSD 8

Compiling pgAgent on FreeBSD 8

From
"Benjamin Krajmalnik"
Date:
<div class="Section1"><p class="MsoNormal">As you may be aware, there is no longer a port for pgagent (which used to be
partof the pgadmin port).<p class="MsoNormal">I am building a new box (FreeBSD 8) and having some issues compiling
pgagentfrom source.<p class="MsoNormal">I already installed pgadmin, so the wxwidgets are already installed.<p
class="MsoNormal">Theseare the steps which I took after installing pgadmin:<p class="MsoNormal"> <p
class="MsoNormal">1. Downloaded the tarball and placed in in /usr/ports/distfiles/pgAgent<p class="MsoNormal">2.
Extractedthe tarball into /usr/ports/distfiles/pgAgent/pgAgent-3.0.1-Source<p class="MsoNormal">3. Executed ccmake
/usr/ports/distfiles/pgAgent/pgAgent-3.0.1-Source<pclass="MsoNormal">4.  Selected option “c” to creare the
configurationfile.<p class="MsoNormal"> <p class="MsoNormal">This is as far as it gets, with the following error:<p
class="MsoNormal"> <pclass="MsoNormal">CMake Error at cmake/FindWX.cmake:317 (MESSAGE):<p class="MsoNormal">   No
wxWidgetsinstallation could be found.<p class="MsoNormal"> Call Stack (most recent call first):<p class="MsoNormal">  
CMakeLists.txt:91(FIND_PACKAGE)<p class="MsoNormal"> <p class="MsoNormal">This is as far as it gets .  Cheking for
installedwx packages I get the following:<p class="MsoNormal"> <p class="MsoNormal">admin2# portversion | grep wx<p
class="MsoNormal">wxgtk2-common              =<p class="MsoNormal">wxgtk2-contrib-common       =<p
class="MsoNormal">wxgtk2-unicode             =<p class="MsoNormal">wxgtk2-unicode-contrib      =<p
class="MsoNormal"> <pclass="MsoNormal">So obviously the wx packages are there.<p class="MsoNormal">Any guidance on
compilingpgagent on FreeBSD from source would be deeply appreciated.<p class="MsoNormal"> <p class="MsoNormal"> </div> 

Re: Compiling pgAgent on FreeBSD 8

From
Dave Page
Date:
On Fri, Apr 23, 2010 at 7:04 PM, Benjamin Krajmalnik <kraj@illumen.com> wrote:
> As you may be aware, there is no longer a port for pgagent (which used to be
> part of the pgadmin port).
>
> I am building a new box (FreeBSD 8) and having some issues compiling pgagent
> from source.
>
> I already installed pgadmin, so the wxwidgets are already installed.
>
> These are the steps which I took after installing pgadmin:
>
> 1.  Downloaded the tarball and placed in in /usr/ports/distfiles/pgAgent
>
> 2. Extracted the tarball into
> /usr/ports/distfiles/pgAgent/pgAgent-3.0.1-Source
>
> 3. Executed ccmake /usr/ports/distfiles/pgAgent/pgAgent-3.0.1-Source
>
> 4.  Selected option “c” to creare the configuration file.
>
> This is as far as it gets, with the following error:
>
> CMake Error at cmake/FindWX.cmake:317 (MESSAGE):
>
>    No wxWidgets installation could be found.
>
>  Call Stack (most recent call first):
>
>    CMakeLists.txt:91 (FIND_PACKAGE)

What values did you specify for each of the config options?


--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postgres Company


Re: Compiling pgAgent on FreeBSD 8

From
"Benjamin Krajmalnik"
Date:
Initially I did not specify anything - just followed the instructions in the README.
If I ignore the errors and go to edit the configuration options, I am missing quite a few keys from the information in
thereadme. 

This is what the configuration shows:
                                                   Page 1 of 1CMAKE_AR                         /usr/bin/ar
                                                                       CMAKE_BUILD_TYPE                 Release
                                                                                CMAKE_COLOR_MAKEFILE             ON
                                                                                         CMAKE_CXX_COMPILER
 /usr/bin/c++                                                                                     CMAKE_CXX_FLAGS

CMAKE_CXX_FLAGS_DEBUG           -g
        CMAKE_CXX_FLAGS_MINSIZEREL       -Os -DNDEBUG
                 CMAKE_CXX_FLAGS_RELEASE          -O3 -DNDEBUG
                          CMAKE_CXX_FLAGS_RELWITHDEBINFO   -O2 -g
                                   CMAKE_C_COMPILER                 /usr/bin/gcc
                                            CMAKE_C_FLAGS
                                                     CMAKE_C_FLAGS_DEBUG              -g
                                                              CMAKE_C_FLAGS_MINSIZEREL         -Os -DNDEBUG
                                                                       CMAKE_C_FLAGS_RELEASE            -O3 -DNDEBUG
                                                                                CMAKE_C_FLAGS_RELWITHDEBINFO     -O2 -g
                                                                                         CMAKE_EXE_LINKER_FLAGS

CMAKE_EXE_LINKER_FLAGS_DEBUG
        CMAKE_EXE_LINKER_FLAGS_MINSIZE
                 CMAKE_EXE_LINKER_FLAGS_RELEASE
                          CMAKE_EXE_LINKER_FLAGS_RELWITH
                                   CMAKE_INSTALL_PREFIX             /usr/local
                                            CMAKE_LINKER                     /usr/bin/ld
                                                     CMAKE_MAKE_PROGRAM               /usr/local/bin/gmake
                                                              CMAKE_MODULE_LINKER_FLAGS
                                                                       CMAKE_MODULE_LINKER_FLAGS_DEBU
                                                                                CMAKE_MODULE_LINKER_FLAGS_MINS
                                                                                         CMAKE_MODULE_LINKER_FLAGS_RELE

CMAKE_MODULE_LINKER_FLAGS_RELW
        CMAKE_NM                         /usr/bin/nm
                 CMAKE_OBJCOPY                    /usr/bin/objcopy
                          CMAKE_OBJDUMP                    /usr/bin/objdump
                                   CMAKE_RANLIB                     /usr/bin/ranlib
                                            CMAKE_SHARED_LINKER_FLAGS
                                                     CMAKE_SHARED_LINKER_FLAGS_DEBU
                                                              CMAKE_SHARED_LINKER_FLAGS_MINS
                                                                       CMAKE_SHARED_LINKER_FLAGS_RELE
                                                                                CMAKE_SHARED_LINKER_FLAGS_RELW
                                                                                         CMAKE_SKIP_RPATH
 OFF                                                                                              CMAKE_STRIP
          /usr/bin/strip
CMAKE_USE_RELATIVE_PATHS        OFF
        CMAKE_VERBOSE_MAKEFILE           OFF
                 STATIC_BUILD                     ON
                          WX_CONFIG_PATH                   WX_CONFIG_PATH-NOTFOUND
                                   WX_DEBUG                         OFF
                                             


> -----Original Message-----
> From: Dave Page [mailto:dpage@pgadmin.org]
> Sent: Friday, April 23, 2010 12:14 PM
> To: Benjamin Krajmalnik
> Cc: pgadmin-support@postgresql.org
> Subject: Re: [pgadmin-support] Compiling pgAgent on FreeBSD 8
>
> On Fri, Apr 23, 2010 at 7:04 PM, Benjamin Krajmalnik <kraj@illumen.com>
> wrote:
> > As you may be aware, there is no longer a port for pgagent (which
> used to be
> > part of the pgadmin port).
> >
> > I am building a new box (FreeBSD 8) and having some issues compiling
> pgagent
> > from source.
> >
> > I already installed pgadmin, so the wxwidgets are already installed.
> >
> > These are the steps which I took after installing pgadmin:
> >
> > 1.  Downloaded the tarball and placed in in
> /usr/ports/distfiles/pgAgent
> >
> > 2. Extracted the tarball into
> > /usr/ports/distfiles/pgAgent/pgAgent-3.0.1-Source
> >
> > 3. Executed ccmake /usr/ports/distfiles/pgAgent/pgAgent-3.0.1-Source
> >
> > 4.  Selected option "c" to creare the configuration file.
> >
> > This is as far as it gets, with the following error:
> >
> > CMake Error at cmake/FindWX.cmake:317 (MESSAGE):
> >
> >    No wxWidgets installation could be found.
> >
> >  Call Stack (most recent call first):
> >
> >    CMakeLists.txt:91 (FIND_PACKAGE)
>
> What values did you specify for each of the config options?
>
>
> --
> Dave Page
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise Postgres Company


Re: Compiling pgAgent on FreeBSD 8

From
Dave Page
Date:
On Fri, Apr 23, 2010 at 7:22 PM, Benjamin Krajmalnik <kraj@illumen.com> wrote:
> Initially I did not specify anything - just followed the instructions in the README.
> If I ignore the errors and go to edit the configuration options, I am missing quite a few keys from the information
inthe readme. 
>
> This is what the configuration shows:
...
>  WX_CONFIG_PATH                   WX_CONFIG_PATH-NOTFOUND

The option above looks like the problem. You need to set that to the
location of the wx-config script - for example, on OSX I use:
CMAKE_BUILD_TYPE                 ReleaseCMAKE_INSTALL_PREFIX             /usr/localCMAKE_OSX_ARCHITECTURES
ppc;i386CMAKE_OSX_SYSROOT               /Developer/SDKs/MacOSX10.5.sdkSTATIC_BUILD                     ONWX_CONFIG_PATH
                 /usr/local/bin/wx-configWX_DEBUG                         OFF 


--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postgres Company


Re: Compiling pgAgent on FreeBSD 8

From
"Benjamin Krajmalnik"
Date:
Thanks!

That pointed me in the right direction. The ex-config had a different
name (with versioning in it), so I simply created a symlink to it and
that fixed it.  Also had to turn off static build, but it all appears to
have worked.
Thank you so much for your assistance!