igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] compile problem


From: Roberto Pagliari
Subject: Re: [igraph] compile problem
Date: Tue, 24 Nov 2009 01:34:03 -0800

i found everything you told me. Now I get the following error

Vongolo:Desktop Bob$ gcc igraph_test.c -I /usr/local/include/igraph -L /usr/local/lib
ld: in /usr/local/lib, can't map file, errno=22
collect2: ld returned 1 exit status
Vongolo:Desktop Bob$ 



On Tue, Nov 24, 2009 at 1:22 AM, Gábor Csárdi <address@hidden> wrote:
Which is not good for your system. This is why I am telling you to use

gcc igraph_test.c -I /usr/local/include/igraph -L /usr/local/lib
-ligraph -o igraph_test


On Tue, Nov 24, 2009 at 9:59 AM, Roberto Pagliari <address@hidden> wrote:
> the command I used is the same at the link I posted above..
>
> On Tue, Nov 24, 2009 at 12:58 AM, Roberto Pagliari <address@hidden>
> wrote:
>>
>>
>> after typing make I get this in the end
>> ibigraph.lax/lt1-libdlamch.a/libdlamch_la-dlamch.o
>> libtool: link: ranlib .libs/libigraph.a
>> libtool: link: rm -fr .libs/libigraph.lax .libs/libigraph.lax
>> libtool: link: ( cd ".libs" && rm -f "libigraph.la" && ln -s
>> "../libigraph.la" "libigraph.la" )
>> Making all in debian
>> make[2]: Nothing to be done for `all'.
>> Making all in tests
>> make[2]: Nothing to be done for `all'.
>> Making all in interfaces
>> make[3]: Nothing to be done for `all-am'.
>> this is the ending of output  after typing   sudo make install
>> Making install in debian
>> make[2]: Nothing to be done for `install-exec-am'.
>> make[2]: Nothing to be done for `install-data-am'.
>> Making install in tests
>> make[2]: Nothing to be done for `install-exec-am'.
>> make[2]: Nothing to be done for `install-data-am'.
>> Making install in interfaces
>> make[3]: Nothing to be done for `install-exec-am'.
>> make[3]: Nothing to be done for `install-data-am'.
>> make  install-exec-hook
>> if test -f ./src/.libs/cygigraph-0.dll ; \
>> then cp ./src/.libs/cygigraph-0.dll \
>> /usr/local/lib ; fi
>> test -z "/usr/local/lib/pkgconfig" || ./install-sh -c -d
>> "/usr/local/lib/pkgconfig"
>>  /usr/bin/install -c -m 644 'igraph.pc'
>> '/usr/local/lib/pkgconfig/igraph.pc'
>>
>> I used the example
>> here http://igraph.sourceforge.net/doc/html/ch03s01.html
>>
>>
>> On Tue, Nov 24, 2009 at 12:28 AM, Gábor Csárdi <address@hidden>
>> wrote:
>>>
>>> On Tue, Nov 24, 2009 at 9:22 AM, Roberto Pagliari <address@hidden>
>>> wrote:
>>> > it still doesnt work and I don't get error messages. Where is the
>>> > igraph
>>> > library located on macos?
>>>
>>> It depends how you installed it. By default the include files should
>>> be in /usr/local/include/igraph and the library files should be in
>>> /usr/local/lib.
>>> Please tell us 1) how did you install it, 2) how do you include
>>> igraph.h it in your source file, a complete source file is best, 3)
>>> what is your command you tried to use to compile your example and 4)
>>> what was the error message you got.
>>>
>>> Best,
>>> Gabor
>>>
>>> > On Tue, Nov 24, 2009 at 12:10 AM, Gábor Csárdi <address@hidden>
>>> > wrote:
>>> >>
>>> >> On Tue, Nov 24, 2009 at 1:50 AM, Roberto Pagliari <address@hidden>
>>> >> wrote:
>>> >> > Hi All,
>>> >> > I tried to install igraph for mac (the C package) but I'm unable to
>>> >> > find
>>> >> > the
>>> >> > library.
>>> >>
>>> >> Hi Roberto,
>>> >>
>>> >> if you only tried to install it, but failed, then it will obviously
>>> >> not work. First make sure that you really installed it. E.g. if there
>>> >> was no error message after running 'make install', then it was
>>> >> installed properly. Then look for the directory that has igraph.h and
>>> >> give that directory for the -I switch.
>>> >>
>>> >> Best,
>>> >> Gabor
>>> >>
>>> >> > I get the following error
>>> >> > bobs-imac:connectivity roberto$ gcc igraph_test.c
>>> >> > -I/usr/local/igraph
>>> >> > -L/usr/local/lib -ligraph -o igraph_test
>>> >> > igraph_test.c:1:20: error: igraph.h: No such file or directory
>>> >> > igraph_test.c: In function ‘main’:
>>> >> > igraph_test.c:5: error: ‘igraph_real_t’ undeclared (first use in
>>> >> > this
>>> >> > function)
>>> >> > igraph_test.c:5: error: (Each undeclared identifier is reported only
>>> >> > once
>>> >> > igraph_test.c:5: error: for each function it appears in.)
>>> >> > igraph_test.c:5: error: syntax error before ‘diameter’
>>> >> > igraph_test.c:6: error: ‘igraph_t’ undeclared (first use in this
>>> >> > function)
>>> >> > igraph_test.c:7: error: ‘graph’ undeclared (first use in this
>>> >> > function)
>>> >> > igraph_test.c:7: error: ‘IGRAPH_ERDOS_RENYI_GNP’ undeclared (first
>>> >> > use
>>> >> > in
>>> >> > this function)
>>> >> > igraph_test.c:8: error: ‘IGRAPH_UNDIRECTED’ undeclared (first use in
>>> >> > this
>>> >> > function)
>>> >> > igraph_test.c:8: error: ‘IGRAPH_NO_LOOPS’ undeclared (first use in
>>> >> > this
>>> >> > function)
>>> >> > igraph_test.c:9: error: ‘diameter’ undeclared (first use in this
>>> >> > function)
>>> >> > igraph_test.c:10: warning: incompatible implicit declaration of
>>> >> > built-in
>>> >> > function ‘printf’
>>> >> >
>>> >> > bobs-imac:connectivity roberto$ pkg-config --libs --cflags igraph
>>> >> > Package igraph was not found in the pkg-config search path.
>>> >> > Perhaps you should add the directory containing `igraph.pc'
>>> >> > to the PKG_CONFIG_PATH environment variable
>>> >> > No package 'igraph' found
>>> >> > bobs-imac:connectivity roberto$ pkg-config --libs --cflags igraph.pc
>>> >> > Failed to open 'igraph.pc': No such file or directory
>>> >> > No package 'igraph.pc' found
>>> >> >
>>> >> > Does anybody know how to fix it?
>>> >> > Thanks,
>>> >> > Bob
>>> >> > _______________________________________________
>>> >> > igraph-help mailing list
>>> >> > address@hidden
>>> >> > http://lists.nongnu.org/mailman/listinfo/igraph-help
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Gabor Csardi <address@hidden>     UNIL DGM
>>> >>
>>> >>
>>> >> _______________________________________________
>>> >> igraph-help mailing list
>>> >> address@hidden
>>> >> http://lists.nongnu.org/mailman/listinfo/igraph-help
>>> >
>>> >
>>> > _______________________________________________
>>> > igraph-help mailing list
>>> > address@hidden
>>> > http://lists.nongnu.org/mailman/listinfo/igraph-help
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Gabor Csardi <address@hidden>     UNIL DGM
>>>
>>>
>>> _______________________________________________
>>> igraph-help mailing list
>>> address@hidden
>>> http://lists.nongnu.org/mailman/listinfo/igraph-help
>>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>



--
Gabor Csardi <address@hidden>     UNIL DGM


_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help


reply via email to

[Prev in Thread] Current Thread [Next in Thread]