[SR-Users] secsipid
Daniel-Constantin Mierla
miconda at gmail.com
Wed May 12 08:27:12 CEST 2021
Hello,
the note about GO111MODULE was added a while ago in the README of
secsipidx project:
* https://github.com/asipto/secsipidx#installation
I will add a note in the module readme as well.
Cheers,
Daniel
On 11.05.21 16:30, David Villasmil wrote:
> Hello Arsen,
>
> Thanks for replying. That was it!
> Should that detail be added to the doc? a lot of people wanting to use
> that are not seasoned Go devs.
>
> @Daniel-Constantin Mierla <mailto:miconda at gmail.com> ?
>
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337
>
>
> On Tue, May 11, 2021 at 2:48 PM Arsen Semenov <arsperger at gmail.com
> <mailto:arsperger at gmail.com>> wrote:
>
> Hi David,
>
> seems you are using Go with Go modules support enabled.
> secsipidx does not support go modules, make sure you have
> environment variable GO111MODULE set to off and then download the
> module by executing "go get github.com/asipto/secsipidx
> <http://github.com/asipto/secsipidx>"
>
> it should be downloaded in your $GOPATH
>
>
>
> On Tue, May 11, 2021 at 6:21 PM David Villasmil
> <david.villasmil.work at gmail.com
> <mailto:david.villasmil.work at gmail.com>> wrote:
>
> Hello guys,
>
> I'm trying to use secsipid as
> per https://kamailio.org/docs/modules/5.5.x/modules/secsipid.html
> <https://kamailio.org/docs/modules/5.5.x/modules/secsipid.html>
>
>
> I just installed go on a new vm:
>
> the env is as follows:
> # env
> GOPATH=/root/go
>
> then:
>
> ~# go get github.com/asipto/secsipidx
> <http://github.com/asipto/secsipidx>
> ~#
>
> Then:
>
> ~# cd $GOPATH/src/github.com/asipto/secsipidx/csecsipid/
> <http://github.com/asipto/secsipidx/csecsipid/>
> bash: cd: /root/go/src/github.com/asipto/secsipidx/csecsipid/
> <http://github.com/asipto/secsipidx/csecsipid/>: No such file
> or directory
>
> it looks like it's not downloaded where the documentation says.
> It is however in:
>
> go
> |-- bin
> `-- pkg
> |-- mod
> | |-- cache
> | | `-- download
> | | |-- github.com <http://github.com>
> | | | |-- asipto
> | | | | `-- secsipidx
> | | | | `-- @v
> | | | `-- google
> | | | `-- uuid
> | | | `-- @v
> | | `-- sumdb
> | | `-- sum.golang.org <http://sum.golang.org>
> | | |-- lookup
> | | | `-- github.com <http://github.com>
> | | | |-- asipto
> | | | `-- google
> | | `-- tile
> | | `-- 8
> | | |-- 0
> | | | |-- x010
> | | | |-- x011
> | | | `-- x016
> | | | `-- 560.p
> | | |-- 1
> | | | `-- 064.p
> | | `-- 2
> | | `-- 000.p
> | `-- github.com <http://github.com>
> | |-- asipto
> | | `-- secsipidx at v1.0.0
> | | |-- csecsipid
> | | `-- secsipid
> | `-- google
> | `-- uuid at v1.2.0
> `-- sumdb
> `-- sum.golang.org <http://sum.golang.org>
>
> 38 directories
>
> But going
> into ~/go/pkg/mod/github.com/asipto/secsipidx at v1.0.0/csecsipid
> <http://github.com/asipto/secsipidx@v1.0.0/csecsipid>
> we have:
>
> ~/go/pkg/mod/github.com/asipto/secsipidx at v1.0.0/csecsipid#
> <http://github.com/asipto/secsipidx@v1.0.0/csecsipid#> ls -l
> total 16
> -r--r--r-- 1 root root 231 May 11 13:14 Makefile
> -r--r--r-- 1 root root 1778 May 11 13:14 csecsipid.go
> -r--r--r-- 1 root root 1988 May 11 13:14 libsecsipid.h
> -r--r--r-- 1 root root 120 May 11 13:14 secsipid.h
>
> The Makefile contains the proper liba:
>
> # Makefile to build libraries
> #
>
> all: libso
>
> libso:
> go build -o libsecsipid.so -buildmode=c-shared csecsipid.go
>
> liba:
> go build -o libsecsipid.a -buildmode=c-archive csecsipid.go
>
> clean:
> rm -f libsecsipid.so
> rm -f linsecsipid.a
>
> But "make liba" returns:
>
> # make liba
> go build -o libsecsipid.a -buildmode=c-archive csecsipid.go
> csecsipid.go:6:2: no required module provides package
> github.com/asipto/secsipidx/secsipid
> <http://github.com/asipto/secsipidx/secsipid>: go.mod file not
> found in current directory or any parent directory; see 'go
> help modules'
> make: *** [Makefile:10: liba] Error 1
>
> Obviously not a "go" guy here.
>
> What am I doing wrong?
>
> Thanks for your help!
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> * sr-users at lists.kamailio.org
> <mailto:sr-users at lists.kamailio.org>
> Important: keep the mailing list in the recipients, do not
> reply only to the sender!
> Edit mailing list options or unsubscribe:
> *
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>
>
>
> --
> Arsen Semenov
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> * sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
> Important: keep the mailing list in the recipients, do not reply
> only to the sender!
> Edit mailing list options or unsubscribe:
> * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
* https://www.asipto.com/sw/kamailio-advanced-training-online/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210512/4f22297d/attachment.htm>
More information about the sr-users
mailing list