Compiling pgAgent on FreeBSD 8

Поиск
Список
Период
Сортировка
Искать

Compiling pgAgent on FreeBSD 8

От:
"Benjamin Krajmalnik" <kraj@illumen.com>
Дата:

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)

 

This is as far as it gets .  Cheking for installed wx packages I get the following:

 

admin2# portversion | grep wx

wxgtk2-common               =

wxgtk2-contrib-common       =

wxgtk2-unicode              =

wxgtk2-unicode-contrib      =

 

So obviously the wx packages are there.

Any guidance on compiling pgagent on FreeBSD from source would be deeply appreciated.

 

 

Re: Compiling pgAgent on FreeBSD 8

От:
Dave Page <dpage@pgadmin.org>
Дата:
On Fri, Apr 23, 2010 at 7:04 PM, Benjamin Krajmalnik  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

От:
"Benjamin Krajmalnik" <kraj@illumen.com>
Дата:
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 the readme.

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 
> 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

От:
Dave Page <dpage@pgadmin.org>
Дата:
On Fri, Apr 23, 2010 at 7:22 PM, Benjamin Krajmalnik  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 in the 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

От:
"Benjamin Krajmalnik" <kraj@illumen.com>
Дата:
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!


FAQ