[libRETS-users] Librets 1.6.3-snapshot centos 7 php5.6

67 views
Skip to first unread message

Taro Inakazu

unread,
May 1, 2017, 2:12:37 PM5/1/17
to libret...@groups.realtors.org

Hey Guys,

 

I’m running into an error when building on a new centos 7 machine. Any ideas?

 

My config script is as follows:

 

CPPFLAGS="-L/usr/local/lib -I/usr/local/include"               \

./configure    --enable-examples                              \

               --enable-debug                                 \

               --enable-depends                            \

               --enable-maintainer-documentation       \

--enable-shared_dependencies                               \

--disable-perl                     \

--disable-python              \

--disable-python3            \

 

There error when running make:

 

g++ -g -O2 -fPIC -DHAVE_CONFIG_H `/root/libRETS/librets-config-inplace --cflags` -g -DLIBRETS_VERSION='"1.6.3-SNAPSHOT"' -I./project/librets/include -I/root/libRETS/project/swig/php5 \

                -I/root/libRETS/project/swig -I/usr/include `php-config --includes` -c build/swig/php5/librets_wrap.cpp -o build/swig/php5/librets_wrap.o

g++ `/root/libRETS/librets-config-inplace --cflags` -g -O2 -fPIC -DHAVE_CONFIG_H -I./project/librets/include  -I/root/libRETS/project/swig -I/usr/include -c /root/libRETS/project/swig/librets_bridge.cpp -o build/swig/librets_bridge.o

g++  -shared -o build/swig/php5/librets.so build/swig/php5/librets_wrap.o \

        `php-config --ldflags` `php-config --libs` `/root/libRETS/librets-config-inplace --libs` build/swig/librets_bridge.o

/usr/bin/ld: cannot find -ledit

collect2: error: ld returned 1 exit status

make[1]: *** [build/swig/php5/librets.so] Error 1

G. Richard Bellamy

unread,
May 1, 2017, 4:13:48 PM5/1/17
to libret...@groups.realtors.org
Maybe "yum install libedit.i686 libedit-devel.i686"? I wouldn't have thought that was necessary... 

You have got the PHP devel package installed, right?
--

G. Richard Bellamy
Chief Technology Officer
Terradatum, Inc.

Taro Inakazu

unread,
May 1, 2017, 4:23:24 PM5/1/17
to libret...@groups.realtors.org

It turns out it was a boost issue with centos 7 … I had to install the latest version from the source. I do have an issue with librets.so loading with php now though:

 

libboost_filesystem-gcc48-mt-1_64.so.1.64.0: cannot open shared object file: No such file or directory in Unknown on line 0

 

Do I need to link this file elsewhere?

 

The current libboost file specified above is in the /usr/local/lib directory so I’m stumped.

 

Image removed by sender.

G. Richard Bellamy

Chief Technology Officer

Terradatum, Inc.

Taro Inakazu

unread,
May 1, 2017, 5:44:11 PM5/1/17
to LibRets Mirror, libret...@groups.realtors.org, ta...@inakazu.ca
I got it! I had to copy the boost libs to the /usr/lib64 and /usr/lib/ directories. Thanks!

Mark Klein

unread,
May 2, 2017, 11:41:44 AM5/2/17
to libret...@groups.realtors.org
Sorry, a bit late to the game. These are the core dependencies from the last
time I built on CentOS (sorry, from the automation I use ... just take the
components from the details):

```classes:
- dis::core_software
- dis::dependencies

core_software:
- antlr-tool
- antlr-C++
- autoconf
- boost-devel
- curl
- expat-devel
- gcc-c++
- git
- java-1.7.0-openjdk-devel
- libcurl-devel
- libstdc++-static
- mlocate
- mono-devel
- nodejs-devel
- libcurl-devel
- perl-devel
- php-devel
- python-devel
- ruby-devel
- swig
- tree
- unzip
- vim-enhanced

dependent_software:
antlr:
extension: 'tar.gz'
git_url: 'https://github.com/antlr/antlr4.git'
url: 'http://www.antlr2.org/download/antlr-<%= @version-%>.<%=
@extension-%>'
version: '2.7.7'
boost:
extension: 'tar.bz2'
git_url: 'https://github.com/boostorg/boost.git'
url: "http://iweb.dl.sourceforge.net/project/boost/boost/<%=
@version-%>/boost_<%= @version.gsub('.', '_')-%>.<%= @extension-%>"
version: '1.57.0'
curl:
extension: 'tar.bz2'
git_url: 'https://github.com/bagder/curl.git'
url: 'http://curl.haxx.se/download/curl-<%= @version-%>.<%=
@extension-%>'
version: '7.43.0'
expat:
extension: 'tar.gz'
git_url: 'https://github.com/coapp-packages/expat.git'
url: 'http://iweb.dl.sourceforge.net/project/expat/expat/<%=
@version-%>/expat-<%= @version-%>.<%= @extension-%>'
version: '2.1.0'
libRETS:
extension: 'tar.gz'
git_url: 'https://github.com/coapp-packages/expat.git'
url:
'https://github.com/NationalAssociationOfRealtors/libRETS/archive/<%=
@version-%>.<%= @extension-%>'
version: '1.6.1'
openssl:
extension: 'tar.gz'
git_url: 'https://github.com/openssl/openssl.git'
url: 'https://www.openssl.org/source/openssl-<%= @version-%>.<
%= @extension-%>'
version: '1.0.2d'
pcre:
extension: 'tar.bz2'
git_url: 'https://github.com/coapp-packages/pcre.git'
url: 'http://iweb.dl.sourceforge.net/project/pcre/pcre/<%=
@version-%>/pcre-<%= @version-%>.<%= @extension-%>'
version: '8.37'
swig:
extension: 'tar.gz'
git_url: 'https://github.com/swig/swig.git'
url: 'http://iweb.dl.sourceforge.net/project/swig/swig/swig-<%=
@version-%>/swig-<%= @version-%>.<%= @extension-%>'
version: '3.0.6'
```
Reply all
Reply to author
Forward
0 new messages