artanis
[Top][All Lists]
Advanced

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

Re: [Artanis] artanis fails on confgure to find guile


From: Julio Claudio Matus Ramirez
Subject: Re: [Artanis] artanis fails on confgure to find guile
Date: Thu, 30 Aug 2018 08:35:49 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,


> guile-dbi-guile-dbd-postgresql does not place anything under pkgconfig

This is not a problem I think. I compiled my guile-dbi for mysql, and
also don't have anything on pkgconfig just for "mysql". And it works
with no issues.


>
> I rewrote the line according to the script in FreeBSD
>     $(V)script  $(AELOG) "$(GUILEC) -L $(SRC) $< -o $@"  > /dev/null || (cat $
> (AELOG) && exit 15)
>
> but then the build fails
> ...
> obj/artanis/version.go: No such file or directory


So, the version.go file isn't being compiled.

I checked my makefile's code, and I think part looks like:

  $(V)script -e -c "$(GUILEC) -L $(SRC) $< -o $@" -f $(AELOG) >
  /dev/null || (cat $(AELOG) && exit 15)

Right?
script's "-c" option is to run the specified command and log the output
to a file. That's in GNU/Linux I guess, don't know about freebsd (it's
probably not executing the arguments as a command).
Instead of removing the "-c" switch, could you try changing that line
for:
  $(GUILEC) -L $(SRC) $< -o $@" || (cat $(AELOG) && exit 15)
or maybe even
  $(GUILEC) -L $(SRC) $< -o $@"

The thing is, version.go is compiled there, so you have to be sure
GUILEC line is working/actually compiling stuffs.


Well, at least now you're in the right track! Only a bit more to go.

Cheers,

Java House <address@hidden> writes:

> Hello
>
> I uninstalled everything and rebuilt guile per you instructions.
> New problems I faced:
> guile-dbi-guile-dbd-postgresql does not place anything under pkgconfig
>
> $ ls /home/nikolas/bin/lib/pkgconfig/
> guile-2.2.pc    guile-dbi.pc
>
> But I continued with the build anyway.
> When trying to build artanis with gmake (make does not work)
> Requires bash under /bin/bash had to change this /usr/local/bin/bash
>
> but the problem is with this line (77) of Makefile
>     $(V)script -e -c "$(GUILEC) -L $(SRC) $< -o $@" -f $(AELOG) > /dev/null ||
> (cat $(AELOG) && exit 15)
>
> script command in FreeBSD does not accept any of the options -e or -c
> + compiling artanis/version.scm
> script: illegal option -- e
> usage: script [-adfkpqr] [-t time] [file [command ...]]
>
> I rewrote the line according to the script in FreeBSD
>     $(V)script  $(AELOG) "$(GUILEC) -L $(SRC) $< -o $@"  > /dev/null || (cat $
> (AELOG) && exit 15)
>
> but then the build fails
> $ gmake
> gmake[1]: Entering directory '/usr/home/nikolas/Downloads/artanis-0.2.5'
> Regenerating artanis/version.scm
> gmake[1]: Leaving directory '/usr/home/nikolas/Downloads/artanis-0.2.5'
> + compiling artanis/version.scm
> Script started on Sun Aug 26 21:52:43 2018
> Command: GUILE_LOAD_COMPILED_PATH=obj /home/nikolas/bin/bin/guild compile
> -Wunsupported-warning -Wunbound-variable -Warity-mismatch
> -Wduplicate-case-datum -Wbad-case-datum -Wformat -L . artanis/version.scm -o
> obj/artanis/version.go
> script: GUILE_LOAD_COMPILED_PATH=obj /home/nikolas/bin/bin/guild compile
> -Wunsupported-warning -Wunbound-variable -Warity-mismatch
> -Wduplicate-case-datum -Wbad-case-datum -Wformat -L . artanis/version.scm -o
> obj/artanis/version.go: No such file or directory
> Script started, output file is build.err.version.go
>
> Command exit status: 1
> Script done on Sun Aug 26 21:52:43 2018
> gmake: *** [Makefile:77: obj/artanis/version.go] Error 15
>
> Regards
> Nikolas
>
> Στις Τετ, 15 Αυγ 2018 στις 8:10 π.μ., ο/η Julio Claudio Matus Ramirez <
> address@hidden> έγραψε:
>
>     Hey Nikolas,
>    
>     I guess you have stuffs from a broken/old guile install in the same dir
>     you are running your working/new guile, that's not a good idea.
>    
>     And, I thought you were running 2.2.4, but now it says 2.2.2... maybe
>     you have multiple installs on your system as well?
>
>     Anyways, you have two options I guess:
>     1. Test with a new clean dir path just for the new guile install
>     2. Uninstall/delete everything guile related (including distro packages)
>        you currently have and make a clean install on your current paths
>    
>     I figure you can imagine what to do on no2, so I'm skipping that
>     explanation.
>     For no1, this is a short version (maybe missing steps) of what to do:
>     (I'm assuming you have already all the necessary dependency libraries)
>    
>     # 1 install guile
>     1. get tar from gnu site
>     2. ./configure --prefix=/home/$USER/bin && make && make install
>     3. set your new path as the one for the highest priority to find
>        commands
>        export PATH=/home/$USER/bin/bin:$PATH
>     4. validate the install by checking the guile version with all the
>        commands used in your previous mail
>
>     # 2 install guile dbi
>     1. git clone https://github.com/opencog/guile-dbi.git
>     2. compile guile-dbi
>         cd guile-dbi
>         ./autogen.sh --no-configure
>         ./configure --prefix=/home/$USER/bin
>         make
>         make install
>         cd ..
>
>     3. compile mysql or any other dbd lib
>         export C_INCLUDE_PATH=$C_INCLUDE_PATH:/home/$USER/bin/include
>         cd guile-dbd-mysql # or other db's
>         ./autogen.sh --no-configure
>         ./configure --prefix=/home/$USER/bin && make && make install
>    
>     # 3 install artanis
>     1. export PKG_CONFIG_PATH=/home/$USER/bin/lib/pkgconfig
>     2. ./configure --prefix=/home/$USER/bin && make && make install
>
>     Let us know if you get it working.
>    
>     Cheers,
>
>     Java House <address@hidden> writes:
>    
>     > well, as they say
>     > the devil is in the details :)
>     >
>     > I did set the variable, correctly this time
>     >
>     >     $ echo $PKG_CONFIG_PATH
>     >     /usr/local/lib/pkgconfig
>     >   
>     >     $ ./configure
>     >     checking for a BSD-compatible install... /usr/bin/install -c
>     >     checking whether ln -s works... yes
>     >     checking whether make sets $(MAKE)... yes
>     >     checking for pkg-config... /usr/local/bin/pkg-config
>     >     checking pkg-config is at least version 0.9.0... yes
>     >     configure: checking for guile 2.2
>     >     configure: found guile 2.2
>     >     checking for guile... /usr/local/bin/guile
>     >     configure: error: found development files for Guile 2.2, but /usr/
>     local/bin/guile has effective version 3.0
>     >   
>     >     $ /usr/local/bin/guile -v
>     >     guile (GNU Guile) 2.2.2.506-e6461
>     >     Copyright (C) 2017 Free Software Foundation, Inc.
>     >   
>     >     License LGPLv3+: GNU LGPL 3 or later <
>     http://gnu.org/licenses/lgpl.html>.
>     >     This is free software: you are free to change and redistribute it.
>     >     There is NO WARRANTY, to the extent permitted by law.
>     >
>     >     $ guile -c "(display (effective-version))"
>     >     3.0
>     >
>     >     $ guile
>     >     GNU Guile 2.2.2.506-e6461
>     >     Copyright (C) 1995-2017 Free Software Foundation, Inc.
>     >   
>     >     Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
>     >     This program is free software, and you are welcome to redistribute
>     it
>     >     under certain conditions; type `,show c' for details.
>     >   
>     >     Enter `,help' for help.
>     >     scheme@(guile-user)> (display (effective-version))
>     >     3.0
>     >
>     > guile reports version 2.2.2.506-e6461 but when requesting effective
>     -version I get 3.0
>     > inside pkgconfig I see both 2.2 and 3.0 pc files. I
>     >
>     >     $ ls /usr/local/lib/pkgconfig/
>     >     guile-2.2.pc    guile-3.0.pc    guile-dbi.pc
>     >
>     > If is rename the guile-2.2.pc then when running configure I get instead
>     >
>     >     # cd /usr/local/lib/pkgconfig/
>     >    address@hidden /usr/local/lib/pkgconfig]# ls
>     >     guile-2.2.pc    guile-3.0.pc    guile-dbi.pc
>     >    address@hidden /usr/local/lib/pkgconfig]# mv guile-2.2.pc 
>     guile-2.2.pc.bak
>     >   
>     >     $ ./configure
>     >     checking for a BSD-compatible install... /usr/bin/install -c
>     >     checking whether ln -s works... yes
>     >     checking whether make sets $(MAKE)... yes
>     >     checking for pkg-config... /usr/local/bin/pkg-config
>     >     checking pkg-config is at least version 0.9.0... yes
>     >     configure: checking for guile 2.2
>     >     configure: checking for guile 2.3
>     >     configure: checking for guile 3.0
>     >     configure: found guile 3.0
>     >     checking for guile... /usr/local/bin/guile
>     >     checking for Guile version >= 3.0... configure: error: Guile 3.0
>     required, but 2.3.0 found
>     >
>     > So I run again i guile and I got.
>     >
>     >     scheme@(guile-user)> (display (effective-version))
>     >     3.0
>     >     scheme@(guile-user)> (display (major-version))
>     >     2
>     >     scheme@(guile-user)> (display (minor-version))
>     >     3
>     >     scheme@(guile-user)> (display (micro-version))
>     >     0
>     >
>     > I dont understand how guile is reporting 3 different varsion 
>     2.2.2.506-e6461,   3.0 and 2.3.5 at the same time
>     >
>     > Hope you didnt get tired following my efforts.
>     >
>     > Στις Τρί, 14 Αυγ 2018 στις 3:41 π.μ., ο/η Julio Claudio Matus Ramirez <
>     address@hidden> έγραψε:
>     >
>     >     Hey Nikolas,
>     >   
>     >     Wow, your mail client is in Greek, that's pretty cool.
>     >
>     >     As instructed in my last mail,
>     >   
>     >     >     find / -name "guile-2.2.pc"
>     >     >   
>     >     >     And use that dir path.
>     >
>     >     You're doing:
>     >       export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/guile-2.2.pc
>     >   
>     >     /usr/local/lib/pkgconfig/guile-2.2.pc points to a file, not a
>     directory
>     >     path.
>     >   
>     >     Please try again with:
>     >       export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
>     >
>     >     Cheers,
>     >   
>     >     Java House <address@hidden> writes:
>     >   
>     >     > Hello
>     >     >
>     >     > Thank you for your tips
>     >     > I tried them but  pkg-config still cannot locate the guile 2.2
>     >     >
>     >     >     $ find / -name "guile-2.2.pc"
>     >     >     /usr/home/nikolas/Downloads/guile-2.2.4/meta/guile-2.2.pc
>     >     >     /usr/local/lib/pkgconfig/guile-2.2.pc
>     >     >     $ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/guile-2.2.pc
>     >     >     $ echo $PKG_CONFIG_PATH
>     >     >     /usr/local/lib/pkgconfig/guile-2.2.pc
>     >     >     $ pkg-config --exists --print-errors guile-2.2
>     >     >     Package guile-2.2 was not found in the pkg-config search path.
>     >     >     Perhaps you should add the directory containing `guile-2.2.pc'
>     >     >     to the PKG_CONFIG_PATH environment variable
>     >     >     Package 'guile-2.2', required by 'virtual:world', not found
>     >     >
>     >     > both guile and artanis latest versions are downloaded from the
>     recomended git repository.
>     >     > I installed and used gmake on FreeBSD and I was using gmake while
>     building guile.
>     >     > I placed all the steps I followed for building and installing
>     guile under FreeBSD here 
>     >     > 
>     http://nikolasnikou.blogspot.com/2018/08/build-guile-for-freebsd.html
>     >     >
>     >     > any more ideas?
>     >     >
>     >     > Kind Regards
>     >     > Nikolas
>     >     >  
>     >     >
>     >     > Στις Σάβ, 11 Αυγ 2018 στις 2:17 π.μ., ο/η Julio Claudio Matus
>     Ramirez <address@hidden> έγραψε:
>     >     >
>     >     >     Hello Nikolas,
>     >     >   
>     >     >     So, you tried to install artanis with guile 2.2.4 right?
>     >     >   
>     >     >     Please try the command:
>     >     >   
>     >     >     pkg-config --exists --print-errors guile-2.2
>     >     >     (configure does something like this to check your guile
>     version)
>     >     >   
>     >     >     And see you don't get any errors.
>     >     >     If this worked then you can ignore the rest of this email...
>     >     >   
>     >     >     If not,
>     >     >     I'm guessing your pkgconfig path is not the default one so you
>     need to
>     >     >     declare it before running configure.
>     >     >   
>     >     >     Mine looks like:
>     >     >     export PKG_CONFIG_PATH=/home/XXX/bin/lib/pkgconfig
>     >     >   
>     >     >     Yours might be /usr/local/lib/pkgconfig ?
>     >     >     You can check by:
>     >     >   
>     >     >     find / -name "guile-2.2.pc"
>     >     >   
>     >     >     And use that dir path.
>     >     >   
>     >     >     Cheers,
>     >     >
>     >     >     Java House <address@hidden> writes:
>     >     >   
>     >     >     > Hello
>     >     >     >
>     >     >     > totally new in Gnu Guile and artanis.
>     >     >     > I am trying for the last couple of weeks to setup guile and
>     artanis my local environment.
>     >     >     > I finally manage to build guile using the latest from git
>     2.2.4
>     >     >     >
>     >     >     > I am following instruntions from here 
>     https://www.gnu.org/software/artanis/manual/manual.html
>     >     >     > but ./configure fails to fins guile even though it has been
>     installed.
>     >     >     >
>     >     >     > I downloaded artanis and then run
>     >     >     >
>     >     >     >     $ ./autogen.sh
>     >     >     >     aclocal -I m4
>     >     >     >     autoconf
>     >     >     >     Now try ./configure
>     >     >     >     $ ./configure
>     >     >     >     checking for a BSD-compatible install... /usr/bin/
>     install -c
>     >     >     >     checking whether ln -s works... yes
>     >     >     >     checking whether make sets $(MAKE)... yes
>     >     >     >     checking for pkg-config... /usr/local/bin/pkg-config
>     >     >     >     checking pkg-config is at least version 0.9.0... yes
>     >     >     >     configure: checking for guile 2.2
>     >     >     >     configure: checking for guile 2.3
>     >     >     >     configure: checking for guile 3.0
>     >     >     >     configure: error:
>     >     >     >     No Guile development packages were found.
>     >     >     >
>     >     >     > guile has been built and installed succesfully (after alot
>     of effort)
>     >     >     >
>     >     >     >     $ find / -name guile 2> /dev/null
>     >     >     >     /usr/home/nikolas/Downloads/guile
>     >     >     >     /usr/home/nikolas/Downloads/guile/libguile/.libs/guile
>     >     >     >     /usr/home/nikolas/Downloads/guile/libguile/guile
>     >     >     >     /usr/home/nikolas/Downloads/guile/meta/guile
>     >     >     >     /usr/home/nikolas/Downloads/guile-2.2.4/libguile/.libs/
>     guile
>     >     >     >     /usr/home/nikolas/Downloads/guile-2.2.4/libguile/guile
>     >     >     >     /usr/home/nikolas/Downloads/guile-2.2.4/meta/guile
>     >     >     >     /usr/local/bin/guile
>     >     >     >     /usr/local/lib/guile
>     >     >     >     /usr/local/include/guile
>     >     >     >     /usr/local/share/guile
>     >     >     >     /usr/ports/lang/guile
>     >     >     >
>     >     >     > I have also built 
>     >     >     > guile-dbi-guile-dbd-postgresql-2.1.6
>     >     >     > guile-dbi-guile-dbi-2.1.6
>     >     >     >
>     >     >     > I am running FreeBSD
>     >     >     > # uname -a
>     >     >     > FreeBSD drake 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510:
>     Fri Jun 22 04:32:14 UTC 2018    address@hidden:/usr/obj/usr
>     /src/sys/
>     >     >     GENERIC  amd64
>     >     >     >
>     >     >     > Any help or reference is aprreciated.
>     >     >     > Kind Regards
>     >     >     > Nikolas
>     >     >     >
>     >     >     >  
>     >     >     >
>     >     >   
>     >     >     --
>     >     >    address@hidden (XMPP/mail)
>     >     >     diaspora: sysad.org/u/rikijpn
>     >     >     GPG key: 
>     http://pgp.mit.edu/pks/lookup?op=get&search=0x280640B9A94C170D
>     >     >
>     >   
>     >     --
>     >    address@hidden (XMPP/mail)
>     >     other mails:address@hidden,gmail.com}
>     >     diaspora: sysad.org/u/rikijpn
>     >     tel: 050-5856-2271
>     >     SIP: address@hidden
>     >     GPG key: 
>     http://pgp.mit.edu/pks/lookup?op=get&search=0x280640B9A94C170D
>     >
>    
>     --
>     address@hidden (XMPP/mail)
>     diaspora: sysad.org/u/rikijpn
>     GPG key: http://pgp.mit.edu/pks/lookup?op=get&search=0x280640B9A94C170D
>

-- 
address@hidden (XMPP/mail)
other mails:address@hidden,gmail.com}
diaspora: sysad.org/u/rikijpn
tel: 050-5856-2271
SIP: address@hidden
GPG key: http://pgp.mit.edu/pks/lookup?op=get&search=0x280640B9A94C170D



reply via email to

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