Install on Mac OX

Hi
  I have a problem running the ./install, i looked the log file but i do not know what could be the problem.

ersions/2.7/lib/python2.7/site-packages
checking python extra libraries... -ldl -framework CoreFoundation
checking python extra linking flags... -u _PyMac_Error Python.framework/Versions/2.7/Python
checking consistency of all components of python development environment... no
configure: error:
  Could not link test program to Python. Maybe the main Python library has been
  installed in some non-standard library path. If so, pass it to configure,
  via the LDFLAGS environment variable.
  Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"

config.log (70.3 KB)

hi

I solved the problem of python version, but i have another problem. when o
run
sudo ./configure --prefix=/opt/local --with-boost=/opt/local
--disable-visibility PYTHON_VERSION=2.7 LDFLAGS=-L/opt/local/lib/

i have this:
config.status: creating src/graph/flow/Makefile
config.status: creating src/graph/layout/Makefile
config.status: creating src/graph/search/Makefile
config.status: creating src/graph_tool/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: Modifying libtool to correctly link libstdc++ before anything
else...

well i search for problems like this in maining list but i don´t find a
solution for this.

note: i install the python, CGAL, boost, expat, scipy and numpy from
macports.

Hi Paulo,

Sorry for the late reply.

Hi Paulo,

Sorry for the late reply.

I solved the problem of python version, but i have another problem. when
o
run
sudo ./configure --prefix=/opt/local --with-boost=/opt/local
--disable-visibility PYTHON_VERSION=2.7 LDFLAGS=-L/opt/local/lib/

i have this:
config.status: creating src/graph/flow/Makefile
config.status: creating src/graph/layout/Makefile
config.status: creating src/graph/search/Makefile
config.status: creating src/graph_tool/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: Modifying libtool to correctly link libstdc++ before anything
else...

I don't see any problem with the above. What is exactly the error?

Cheers,
Tiago

i send the file with the output attached, this is the result when i made
make

A 2011/04/14, às 10:39, paulo lopes escreveu:

Hi Paulo,

Sorry for the late reply.

I solved the problem of python version, but i have another problem. when
o
run
sudo ./configure --prefix=/opt/local --with-boost=/opt/local
--disable-visibility PYTHON_VERSION=2.7 LDFLAGS=-L/opt/local/lib/

i have this:
config.status: creating src/graph/flow/Makefile
config.status: creating src/graph/layout/Makefile
config.status: creating src/graph/search/Makefile
config.status: creating src/graph_tool/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: Modifying libtool to correctly link libstdc++ before anything
else...

I don't see any problem with the above. What is exactly the error?

Cheers,
Tiago

i send the file with the output attached, this is the result when i made
make
Sorry i forgoten the attached,

_______________________________________________
graph-tool mailing list
graph-tool(a)skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool

--
View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Install-on-Mac-OX-tp2807511p2819707.html
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
_______________________________________________
graph-tool mailing list
graph-tool(a)skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool

Paulo Lopes

theresultofmake.rtf (574 KB)

Hi Paulo,

Hi Paulo,

i send the file with the output attached, this is the result when i made
make

I think the problem you are encountering has been fixed in the latest
version from the git repository. Could you try that?

ok, i never worked with git before but what i did was :
$ cd graph_tool
$git clone git://git.skewed.de/graph-tool
then to get the last version :

$ git pull
and i get
fatal: Not a git repository (or any of the parent directories): .git

Cheers,
Tiago

No, you don't need to do a git pull like this. You have to do a git
clone command like you did, but _outside_ the graph-tool directory,
since the directory will be created for you by git. Note that you need
to make sure there is _no_ graph-tool directory lying around! Once you
have cloned the tree, you go to the newly created graph-tool directory
and do:

   ./autogen.sh
   ./configure [your configure options]
   make

Cheers,
Tiago

Hi

>ok, i never worked with git before but what i did was :
>$ cd graph_tool
>$git clone git://git.skewed.de/graph-tool
>then to get the last version :

>$ git pull
>and i get
>fatal: Not a git repository (or any of the parent directories): .git

>No, you don't need to do a git pull like this. You have to do a git
>clone command like you did, but _outside_ the graph-tool directory,
>since the directory will be created for you by git. Note that you need
>to make sure there is _no_ graph-tool directory lying around! Once you
>have cloned the tree, you go to the newly created graph-tool directory
>and do:

ok now i did the clone outside de graph-tool directory
cd graph-tool -> the new one

   >./autogen.sh

  this command did't work, give me a python version error like the first time i made ./configure
so i made :
sudo ./autogen.sh --prefix=/opt/local --with-boost=/opt/local --disable-visibility PYTHON_VERSION=2.7 LDFLAGS=-L/opt/local/lib/
and it woks

   >./configure [your configure options]

and i did the same to configure
sudo ./configure --prefix=/opt/local --with-boost=/opt/local --disable-visibility PYTHON_VERSION=2.7 LDFLAGS=-L/opt/local/lib/

but when run the make command, give me a error

  > make

Cheers,Tiago

--
Tiago de Paula Peixoto <tiago(a)skewed.de>

_______________________________________________
graph-tool mailing list
graph-tool(a)skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool

Paulo Lopes

attachment.html (2.5 KB)

makeerror.rtf (2.12 KB)

attachment.html (664 Bytes)

The error says:

    graph_generation.cc:124: fatal error: opening dependency file .deps/graph_generation.Tpo: Permission denied
    compilation terminated.

You probably ran configure as root, and make as a regular user.

In any case, I think it is quite time consuming to keep back and forth
like this. I'm currently in the process of producing an usable Portfile
for graph-tool, so that it can be used without much trouble with
macports. Wouldn't you rather wait until it is ready?

(Also, it would be nice to send error logs as plain text, not RTF, so
that I don't have to open libreoffice every time.)

Cheers,
Tiago

A Portfile would be outstanding, Tiago. I'm a reasonably experienced
Unix/C developer who never managed to get a working graph-tool on my
Snow Leopard machine. Hopefully this'll help out lots of folks like
me.

Once I see what you've done with the Portfile, I'll give a shot to
making a corresponding Brew.

Sam