Dear All,
I have requested out IT manager to install graph-tool on our local cluster (based on RedHat). He changed the "configure" link to point to the corresponding directories, and the "configure" operation seemed to completed successfully. However, the make operation failed with the corresponding message:
In file included from ./../graph_python_interface.hh:48:0, from graph_motifs.cc:26: ./../numpy_bind.hh: In function ‘boost::python::api::object wrap_vector_owned(const std::vector<_RealType>&)’: ./../numpy_bind.hh:83:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in this scope PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS | ^ ./../numpy_bind.hh:83:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared in this scope PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS | ^ ./../numpy_bind.hh:84:25: error: ‘NPY_ARRAY_OWNDATA’ was not declared in this scope NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE); ^ ./../numpy_bind.hh:84:45: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in this scope NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE); ^ ./../numpy_bind.hh:84:64: error: there are no arguments to ‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive] NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE); ^ ./../numpy_bind.hh:84:64: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) ./../numpy_bind.hh: In function ‘boost::python::api::object wrap_vector_not_owned(std::vector<_RealType>&)’: ./../numpy_bind.hh:101:33: error: ‘NPY_ARRAY_ALIGNED’ was not declared in this scope PyArray_ENABLEFLAGS(ndarray,NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS | ^ ./../numpy_bind.hh:101:53: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared in this scope PyArray_ENABLEFLAGS(ndarray,NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS | ^ ./../numpy_bind.hh:102:25: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in this scope NPY_ARRAY_WRITEABLE); ^ ./../numpy_bind.hh:102:44: error: there are no arguments to ‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive] NPY_ARRAY_WRITEABLE); ^ ./../numpy_bind.hh: In function ‘boost::python::api::object wrap_multi_array_owned(const boost::multi_array<ValueType, Dim>&)’: ./../numpy_bind.hh:122:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in this scope PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS | ^ ./../numpy_bind.hh:122:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared in this scope PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS | ^ ./../numpy_bind.hh:123:25: error: ‘NPY_ARRAY_OWNDATA’ was not declared in this scope NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE); ^ ./../numpy_bind.hh:123:45: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in this scope NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE); ^ ./../numpy_bind.hh:123:64: error: there are no arguments to ‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive] NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE); ^ ./../numpy_bind.hh: In function ‘boost::python::api::object wrap_multi_array_not_owned(boost::multi_array<ValueType, Dim>&)’: ./../numpy_bind.hh:137:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in this scope PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS | ^ ./../numpy_bind.hh:137:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared in this scope PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS | ^ ./../numpy_bind.hh:138:25: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in this scope NPY_ARRAY_WRITEABLE); ^ ./../numpy_bind.hh:138:44: error: there are no arguments to ‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive] NPY_ARRAY_WRITEABLE); ^ make[4]: *** [graph_motifs.lo] Error 1 make[4]: Leaving directory `/usr/local/graph-tool-2.19/src/graph/clustering' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/graph-tool-2.19/src/graph' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/graph-tool-2.19/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/graph-tool-2.19' make: *** [all] Error 2
Any idea how to resolve this?
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 05.12.2016 08:08, bloodymeli wrote:
I have requested out IT manager to install graph-tool on our local cluster (based on RedHat). He changed the "configure" link to point to the corresponding directories, and the "configure" operation seemed to completed successfully. However, the make operation failed with the corresponding message:
What numpy version do you have installed?
Please note that when troubleshooting compilation problems, it is always important to have the _full_ outputs of ./configure and make, as well the entire contents of the config.log file.
Best, Tiago
Thanks. I'm attaching the corresponding information and filed I have received from out IT manager.
The system info is :
# uname -a Linux admin 2.6.32-431.5.1.el6.x86_64 #1 SMP Fri Jan 10 14:46:43 EST 2014 x86_64 x86_64 x86_64 GNU/Linux # cat /etc/issue Red Hat Enterprise Linux Server release 6.5 (Santiago) Kernel \r on an \m
Setup before the configure :
export CAIROMM_CFLAGS=-O export CAIROMM_LIBS=/usr/lib64/libcairomm-1.0.so export PYCAIRO_HEADER=/usr/include/pycairo source /usr/local/gcc5.3/setup.sh
where : # cat /usr/local/gcc5.3/setup.sh
#!/bin/sh # Setup for GCC 5.3
export DIR=/usr/local/gcc5.3 export PATH=$DIR/bin:$PATH export LD_LIBRARY_PATH=$DIR/lib64:$DIR/lib:$LD_LIBRARY_PATH export LD_RUN_PATH=$LD_LIBRARY_PATH
The log files are in the attached zip file.
Thanks ahead! logsofgraphtool2_19installation.zip http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/n4026894/logsofgraphtool2_19installation.zip
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 05.12.2016 13:40, bloodymeli wrote:
I'm attaching the corresponding information and filed I have received from out IT manager.
Thanks, but I still don't know what numpy version you have installed.
Hi,
Here's the IT manager response : Via the RedHat rpm - numpy-1.4.1-9 is installed. Also under the local installation of python2.7, numpy-1.8.1-2 is installed. Regarding folders :
/usr/lib64/python2.6/site-packages/numpy
/usr/local/epd/lib/python2.7/site-packages/numpy
Once again, thanks for your help!
On 5 Dec 2016 15:46, "Tiago Peixoto [via Main discussion list for the graph-tool project]" ml-node+s982480n4026895h32@n3.nabble.com wrote:
On 05.12.2016 13:40, bloodymeli wrote:
I'm attaching the corresponding information and filed I have received
from
out IT manager.
Thanks, but I still don't know what numpy version you have installed.
-- Tiago de Paula Peixoto <[hidden email] http:///user/SendEmail.jtp?type=node&node=4026895&i=0> _______________________________________________ graph-tool mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=4026895&i=1 https://lists.skewed.de/mailman/listinfo/graph-tool -- Tiago de Paula Peixoto tiago@skewed.de
If you reply to this email, your message will be added to the discussion below: http://main-discussion-list-for-the-graph-tool-project. 982480.n3.nabble.com/RedHat-Installation-Assistance-tp4026892p4026895.html To unsubscribe from RedHat Installation Assistance, click here http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4026892&code=Ymxvb2R5bWVsaUBnbWFpbC5jb218NDAyNjg5MnwtMjkzNzQyMzEz . NAML http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 05.12.2016 16:16, bloodymeli wrote:
Via the RedHat rpm - numpy-1.4.1-9 is installed.
This is the problem. graph-tool requires numpy version 1.7 or above.
Numpy 1.4 is already over 6 years old.
Thanks! I'll ask the manager to update the numpy installation. However, he might be reluctant to do so due to breaking other dependencies. I guess this is the reason he tried to link with the local numpy-1.8.1-2. It's there a way to link/compile with the epd copy ( at usr/local/epd/lib/python2.7/site-packages/numpy) rather than the system numpy?
On 5 Dec 2016 17:44, "Tiago Peixoto [via Main discussion list for the graph-tool project]" ml-node+s982480n4026897h94@n3.nabble.com wrote:
On 05.12.2016 16:16, bloodymeli wrote:
Via the RedHat rpm - numpy-1.4.1-9 is installed.
This is the problem. graph-tool requires numpy version 1.7 or above.
Numpy 1.4 is already over 6 years old.
On 05.12.2016 17:58, bloodymeli wrote:
Thanks! I'll ask the manager to update the numpy installation. However, he might be reluctant to do so due to breaking other dependencies. I guess this is the reason he tried to link with the local numpy-1.8.1-2. It's there a way to link/compile with the epd copy ( at usr/local/epd/lib/python2.7/site-packages/numpy) rather than the system numpy?
Yes, you have to specify its directory with the option --with-numpy=DIR passed to ./configure.
Best, Tiago
Thank you once again. I apologize for re-consulting, but our IT manager failed to install again (arghh). I'm forwarding his message:
I set the environment to use the newer python and numpy, and corrected the boost library to work with it. Configure worked OK but now make failed in searching cairommconfig.h
CXX graph_cairo_draw.lo graph_cairo_draw.cc:37:27: fatal error: cairommconfig.h: No such file or directory compilation terminated.
cairommconfig.h exists: /usr/include/cairomm-1.0/cairomm/cairommconfig.h as a part of the installed cairomm-devel.
I didn't find a way to tell the configure from where to take the cairomm header files. Please ask the developer.
The log files attached.
Best, Eli
On Mon, Dec 5, 2016 at 7:36 PM, Tiago Peixoto [via Main discussion list for the graph-tool project] ml-node+s982480n4026899h56@n3.nabble.com wrote:
On 05.12.2016 17:58, bloodymeli wrote:
Thanks! I'll ask the manager to update the numpy installation. However,
he
might be reluctant to do so due to breaking other dependencies. I guess
this
is the reason he tried to link with the local numpy-1.8.1-2. It's there
a
way to link/compile with the epd copy ( at usr/local/epd/lib/python2.7/site-packages/numpy) rather than the
system
numpy?
Yes, you have to specify its directory with the option --with-numpy=DIR passed to ./configure.
Best, Tiago
-- Tiago de Paula Peixoto <[hidden email] http:///user/SendEmail.jtp?type=node&node=4026899&i=0>
graph-tool mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=4026899&i=1 https://lists.skewed.de/mailman/listinfo/graph-tool
*signature.asc* (849 bytes) Download Attachment
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/attachment/4026899/0/signature.asc
Tiago de Paula Peixoto tiago@skewed.de
If you reply to this email, your message will be added to the discussion below: http://main-discussion-list-for-the-graph-tool-project. 982480.n3.nabble.com/RedHat-Installation-Assistance-tp4026892p4026899.html To unsubscribe from RedHat Installation Assistance, click here http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4026892&code=Ymxvb2R5bWVsaUBnbWFpbC5jb218NDAyNjg5MnwtMjkzNzQyMzEz . NAML http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
relogsofgraphtool2_19installation.zip (25K) http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/attachment/4026901/0/relogsofgraphtool2_19installation.zip
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 06.12.2016 11:27, bloodymeli wrote:
Thank you once again. I apologize for re-consulting, but our IT manager failed to install again (arghh). I'm forwarding his message:
I set the environment to use the newer python and numpy, and corrected the boost library to work with it. Configure worked OK but now make failed in searching cairommconfig.h
CXX graph_cairo_draw.lo graph_cairo_draw.cc:37:27: fatal error: cairommconfig.h: No such file or directory compilation terminated.
cairommconfig.h exists: /usr/include/cairomm-1.0/cairomm/cairommconfig.h as a part of the installed cairomm-devel.
I didn't find a way to tell the configure from where to take the cairomm header files. Please ask the developer.
The log files attached.
Try the following:
./configure CPPFLAGS="-I/usr/include/cairomm-1.0/cairomm/"
Hi,
Alas, still no compilation. Our's IT response:
tried : ./configure CPPFLAGS="-I/usr/include/cairomm-1.0/cairomm/" make
and now got :
graph_cairo_draw.cc:38:29: fatal error: cairomm/context.h: No such file or directory compilation terminated. make[4]: *** [graph_cairo_draw.lo] Error 1 make[4]: Leaving directory `/usr/local/graph-tool-2.19/src/graph/draw' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/graph-tool-2.19/src/graph' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/graph-tool-2.19/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/graph-tool-2.19' make: *** [all] Error 2
but the file exists :
# ls -l /usr/include/cairomm-1.0/cairomm/context.h -rw-r--r-- 1 root root 39093 Dec 20 2008 /usr/include/cairomm-1.0/ cairomm/context.h
Best, Eli
On Tue, Dec 6, 2016 at 12:43 PM, Tiago Peixoto [via Main discussion list for the graph-tool project] ml-node+s982480n4026902h49@n3.nabble.com wrote:
On 06.12.2016 11:27, bloodymeli wrote:
Thank you once again. I apologize for re-consulting, but our IT manager failed to install
again
(arghh). I'm forwarding his message:
I set the environment to use the newer python and numpy, and corrected
the
boost library to work with it. Configure worked OK but now make failed in searching cairommconfig.h
CXX graph_cairo_draw.lo graph_cairo_draw.cc:37:27: fatal error: cairommconfig.h: No such file or directory compilation terminated.
cairommconfig.h exists: /usr/include/cairomm-1.0/cairomm/cairommconfig.h
as a part of the installed cairomm-devel.
I didn't find a way to tell the configure from where to take the cairomm header files. Please ask the developer.
The log files attached.
Try the following:
./configure CPPFLAGS="-I/usr/include/cairomm-1.0/cairomm/"
-- Tiago de Paula Peixoto <[hidden email] http:///user/SendEmail.jtp?type=node&node=4026902&i=0>
graph-tool mailing list [hidden email] http:///user/SendEmail.jtp?type=node&node=4026902&i=1 https://lists.skewed.de/mailman/listinfo/graph-tool
*signature.asc* (849 bytes) Download Attachment
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/attachment/4026902/0/signature.asc
Tiago de Paula Peixoto tiago@skewed.de
If you reply to this email, your message will be added to the discussion below: http://main-discussion-list-for-the-graph-tool-project. 982480.n3.nabble.com/RedHat-Installation-Assistance-tp4026892p4026902.html To unsubscribe from RedHat Installation Assistance, click here http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4026892&code=Ymxvb2R5bWVsaUBnbWFpbC5jb218NDAyNjg5MnwtMjkzNzQyMzEz . NAML http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
-- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 06.12.2016 23:10, bloodymeli wrote:
Hi,
Alas, still no compilation. Our's IT response:
tried : ./configure CPPFLAGS="-I/usr/include/cairomm-1.0/cairomm/" make
and now got :
graph_cairo_draw.cc:38:29: fatal error: cairomm/context.h: No such file or directory compilation terminated. make[4]: *** [graph_cairo_draw.lo] Error 1 make[4]: Leaving directory `/usr/local/graph-tool-2.19/src/graph/draw' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/graph-tool-2.19/src/graph' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/graph-tool-2.19/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/graph-tool-2.19' make: *** [all] Error 2
but the file exists :
# ls -l /usr/include/cairomm-1.0/cairomm/context.h -rw-r--r-- 1 root root 39093 Dec 20 2008 /usr/include/cairomm-1.0/cairomm/context.h
If the file being included is cairomm/context.h the include path should be:
./configure CPPFLAGS="-I/usr/include/cairomm-1.0/"
otherwise the preprocessor will search for /usr/include/cairomm-1.0/cairomm/cairomm/context.h, which does not exist.
But there seems to be something inconsistent with the cairomm install. If the above reverts back to the previous error, you should try
./configure CPPFLAGS="-I/usr/include/cairomm-1.0/ -I/usr/include/cairomm-1.0/cairomm/"
Anyways, this is pretty basic stuff, really. Your IT guy should be able to figure this out instead of just copy and pasting the error messages.