[OmniOS-discuss] install GNUHEALTH

Dirk Willems dirk.willems at exitas.be
Fri Aug 18 15:08:33 UTC 2017


Peter,


I started over from scratch and followed 
http://wiki.omniosce.org/DevEnv.html

so now I have the |system/header||:)|

|
|

|And also remember again why I use the pkgsrc source because of the 
packages like python postgress gpg etc ...|

|which I cannot find in the pkg repo.|

|
|

|So pkg gcc is installed
|

gnuhealth at GNUHealth:/export/home/gnuhealth/gnuhealth-3.2.1$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/gcc-5.1.0/libexec/gcc/i386-pc-solaris2.11/5.1.0/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: ./configure --prefix=/opt/gcc-5.1.0 --host 
i386-pc-solaris2.11 --build i386-pc-solaris2.11 --target 
i386-pc-solaris2.11 --with-boot-ldflags=-R/opt/gcc-5.1.0/lib 
--with-gmp=/opt/gcc-5.1.0 --with-mpfr=/opt/gcc-5.1.0 
--with-mpc=/opt/gcc-5.1.0 --enable-languages=c,c++,fortran,lto 
--without-gnu-ld --with-ld=/bin/ld --with-as=/usr/bin/gas --with-gnu-as 
--with-build-time-tools=/usr/gnu/i386-pc-solaris2.11/bin
Thread model: posix
gcc version 5.1.0 (GCC)


Tried to install it again with pkg gcc 5.1 hopefully ...


building 'psycopg2._psycopg' extension
     creating build/temp.solaris-2.11-i86pc.64bit-3.6
     creating build/temp.solaris-2.11-i86pc.64bit-3.6/psycopg
     gcc -Wno-unused-result -Wsign-compare -DNDEBUG -pipe -O2 -pipe -O2 
-I/usr/include -I/opt/local/include -I/opt/local/include/ncurses 
-I/opt/local/include/db4 -pipe -O2 -pipe -O2 -I/usr/include 
-I/opt/local/include -I/opt/local/include/ncurses 
-I/opt/local/include/db4 -pipe -O2 -pipe -O2 -I/usr/include 
-I/opt/local/include -I/opt/local/include/ncurses 
-I/opt/local/include/db4 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 
-DPSYCOPG_VERSION="2.7.3 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=90412 
-DHAVE_LO64=1 -I/opt/local/include/python3.6 -I. -I/opt/local/include 
-I/opt/local/include/postgresql/server -c psycopg/psycopgmodule.c -o 
build/temp.solaris-2.11-i86pc.64bit-3.6/psycopg/psycopgmodule.o
     In file included from /opt/local/include/python3.6/Python.h:50:0,
                      from ./psycopg/psycopg.h:34,
                      from psycopg/psycopgmodule.c:27:
/opt/local/include/python3.6/pyport.h:686:2: error: #error "LONG_BIT 
definition appears wrong for platform (bad gcc/glibc config?)."
      #error "LONG_BIT definition appears wrong for platform (bad 
gcc/glibc config?)."
       ^
     In file included from ./psycopg/psycopg.h:37:0,
                      from psycopg/psycopgmodule.c:27:
     ./psycopg/config.h:174:0: warning: "isinf" redefined
      #define isinf(x) (!finite((x)) && (x)==(x))
      ^
     In file included from /usr/include/math.h:33:0,
                      from /opt/local/include/python3.6/pyport.h:194,
                      from /opt/local/include/python3.6/Python.h:50,
                      from ./psycopg/psycopg.h:34,
                      from psycopg/psycopgmodule.c:27:
     /usr/include/iso/math_c99.h:67:0: note: this is the location of the 
previous definition
      #define isinf(x) __builtin_isinf(x)
      ^
     error: command 'gcc' failed with exit status 1

     ----------------------------------------
Command "/opt/local/bin/python3.6 -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-gd_pv6gq/psycopg2/setup.py';f=getattr(tokenize, 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-cdr8idal-record/install-record.txt 
--single-version-externally-managed --compile --user --prefix=" failed 
with error code 1 in /tmp/pip-build-gd_pv6gq/psycopg2/
2017-08-18 14:24:57 [INFO] Bailing out !
2017-08-18 14:24:57 [INFO] Cleaning up temp directories at 
/tmp/gnuhealth_installer
2017-08-18 14:24:57 [INFO] removing base dir at 
/export/home/gnuhealth//gnuhealth


Getting a different error now it's python who is complaining to bad :(


So I was thinking for trying /"//A *much* better idea woul be to remove 
(or move out of the way) the entire include-fixed directory."/



So I installed the pkgsrc gcc49

changing the PATH

gnuhealth at GNUHealth:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/local/gcc49/libexec/gcc/x86_64-sun-solaris2.11/4.9.4/lto-wrapper
Target: x86_64-sun-solaris2.11
Configured with: ../gcc-4.9.4/configure --disable-libstdcxx-pch 
--enable-libssp --enable-languages='c obj-c++ objc go fortran c++' 
--enable-shared --enable-long-long --with-local-prefix=/opt/local 
--enable-threads=posix --with-boot-ldflags='-static-libstdc++ 
-static-libgcc -Wl,-R/opt/local/lib ' --disable-nls 
--with-gxx-include-dir=/opt/local/gcc49/include/c++/ --without-gnu-ld 
--with-ld=/usr/bin/ld --with-gnu-as --with-as=/opt/local/bin/gas 
--prefix=/opt/local/gcc49 --build=x86_64-sun-solaris2.11 
--host=x86_64-sun-solaris2.11 --infodir=/opt/local/gcc49/info 
--mandir=/opt/local/gcc49/man
Thread model: posix
gcc version 4.9.4 (GCC)

But before modify something I thought just run it with gcc49 and see 
what comes

So reinstall the script and now it is working great I love this :)

so it works with pkgsrc gcc49

Collecting psycopg2
   Using cached psycopg2-2.7.3.tar.gz
Installing collected packages: psycopg2
   Running setup.py install for psycopg2 ... done
Successfully installed psycopg2-2.7.3
Collecting vobject
   Downloading vobject-0.9.5.tar.gz (58kB)
     100% |################################| 61kB 1.3MB/s
Requirement already up-to-date: python-dateutil>=2.4.0 in 
/export/home/gnuhealth/.local/lib/python3.6/site-packages (from vobject)
Requirement already up-to-date: six>=1.5 in 
/export/home/gnuhealth/.local/lib/python3.6/site-packages (from 
python-dateutil>=2.4.0->vobject)
Installing collected packages: vobject
   Running setup.py install for vobject ... done
Successfully installed vobject-0.9.5


up to the next problem

2017-08-18 14:57:00 [INFO] OK.
2017-08-18 14:57:00 [INFO] Uncompressing the Tryton server...
tar: /tmp/gnuhealth_installer/4.2: No such file or directory
2017-08-18 14:57:00 [INFO] Bailing out !
2017-08-18 14:57:00 [INFO] Cleaning up temp directories at 
/tmp/gnuhealth_installer
2017-08-18 14:57:00 [INFO] removing base dir at 
/export/home/gnuhealth//gnuhealth
rm: Cannot remove any directory in the path of the current working directory
/export/home/gnuhealth//gnuhealth/tryton/server
rm: Unable to remove directory /export/home/gnuhealth//gnuhealth/tryton: 
Directory not empty
rm: Unable to remove directory /export/home/gnuhealth//gnuhealth: 
Directory not empty


Looking if I can fix this ...

Thank you very much, I keep posting ...

KR,

Dirk

On 18-08-17 13:18, Peter Tribble wrote:
>
>
> On Fri, Aug 18, 2017 at 12:12 PM, Dirk Willems <dirk.willems at exitas.be 
> <mailto:dirk.willems at exitas.be>> wrote:
>
>     Hello,
>
>
>     In the file
>     /opt/local/gcc7/lib/gcc/x86_64-sun-solaris2.11/7.1.0/include-fixed/limits.h
>     stands
>
>
>     #ifdef _GCC_NEXT_LIMITS_H
>
>     #include_next <limits>
>
>     #endif
>
>
>     Can I uncomment the include_next <limits>   or bad idea ?
>
>
> A *much* better idea woul be to remove (or move out of the way) the 
> entire include-fixed directory.
>
> You're using pkgsrc here. There may be a good reason, but why not the 
> system compiler?
>
> But, you do have the system/header package installed?
>
>     Thanks
>
>
>     KR,
>
>
>     Dirk
>
>
>
>     On 18-08-17 12:54, Dirk Willems wrote:
>>
>>     Hello,
>>
>>
>>     I try to install GNUHEALTH on OmniOSCE
>>
>>
>>     but when I run the install script I got a error on gcc
>>
>>
>>     Any suggestions what I'm doing wrong ?
>>
>>
>>     I install the package py36-psycopg2-2.7.1
>>
>>
>>     building 'psycopg2._psycopg' extension
>>         creating build/temp.solaris-2.11-i86pc.64bit-3.6
>>         creating build/temp.solaris-2.11-i86pc.64bit-3.6/psycopg
>>         gcc -Wno-unused-result -Wsign-compare -DNDEBUG -pipe -O2
>>     -pipe -O2 -I/usr/include -I/opt/local/include
>>     -I/opt/local/include/ncurses -I/opt/local/include/db4 -pipe -O2
>>     -pipe -O2 -I/usr/include -I/opt/local/include
>>     -I/opt/local/include/ncurses -I/opt/local/include/db4 -pipe -O2
>>     -pipe -O2 -I/usr/include -I/opt/local/include
>>     -I/opt/local/include/ncurses -I/opt/local/include/db4 -fPIC
>>     -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.7.3 (dt dec
>>     pq3 ext lo64)" -DPG_VERSION_NUM=90412 -DHAVE_LO64=1
>>     -I/opt/local/include/python3.6 -I. -I/opt/local/include
>>     -I/opt/local/include/postgresql/server -c psycopg/psycopgmodule.c
>>     -o build/temp.solaris-2.11-i86pc.64bit-3.6/psycopg/psycopgmodule.o
>>         In file included from
>>     /opt/local/gcc7/lib/gcc/x86_64-sun-solaris2.11/7.1.0/include-fixed/syslimits.h:7:0,
>>                          from
>>     /opt/local/gcc7/lib/gcc/x86_64-sun-solaris2.11/7.1.0/include-fixed/limits.h:34,
>>                          from /opt/local/include/python3.6/Python.h:11,
>>                          from ./psycopg/psycopg.h:34,
>>                          from psycopg/psycopgmodule.c:27:
>>     /opt/local/gcc7/lib/gcc/x86_64-sun-solaris2.11/7.1.0/include-fixed/limits.h:194:15:
>>     fatal error: limits.h: No such file or directory
>>          #include_next <limits.h>  /* recurse down to the real one */
>>                        ^~~~~~~~~~
>>         compilation terminated.
>>         error: command 'gcc' failed with exit status 1
>>
>>         ----------------------------------------
>>     Command "/opt/local/bin/python3.6 -u -c "import setuptools,
>>     tokenize;__file__='/tmp/pip-build-68er_27q/psycopg2/setup.py';f=getattr(tokenize,
>>     'open', open)(__file__);code=f.read().replace('\r\n',
>>     '\n');f.close();exec(compile(code, __file__, 'exec'))" install
>>     --record /tmp/pip-_oz9xywx-record/install-record.txt
>>     --single-version-externally-managed --compile --user --prefix="
>>     failed with error code 1 in /tmp/pip-build-68er_27q/psycopg2/
>>     2017-08-18 10:37:17 [INFO] Bailing out !
>>     2017-08-18 10:37:17 [INFO] Cleaning up temp directories at
>>     /tmp/gnuhealth_installer
>>     2017-08-18 10:37:17 [INFO] removing base dir at
>>     /export/home/gnuhealth//gnuhealth
>>     gnuhealth at GNUHealth:/export/home/gnuhealth/gnuhealth-3.2.1$
>>     <mailto:gnuhealth at GNUHealth:/export/home/gnuhealth/gnuhealth-3.2.1$>
>>     vi gnuhealth-setup
>>
>>     gnuhealth at GNUHealth:/export/home/gnuhealth/gnuhealth-3.2.1$
>>     <mailto:gnuhealth at GNUHealth:/export/home/gnuhealth/gnuhealth-3.2.1$>
>>     echo $PATH
>>     /opt/local/gcc7/bin:/opt/local/gcc7/lib:/opt/local/sbin:/opt/local/bin:/usr/bin:
>>
>>     gnuhealth at GNUHealth:/export/home/gnuhealth/gnuhealth-3.2.1$
>>     <mailto:gnuhealth at GNUHealth:/export/home/gnuhealth/gnuhealth-3.2.1$>
>>     vi
>>     /opt/local/gcc7/lib/gcc/x86_64-sun-solaris2.11/7.1.0/include-fixed/limits.h
>>
>>     gnuhealth at GNUHealth:/export/home/gnuhealth/gnuhealth-3.2.1$
>>     <mailto:gnuhealth at GNUHealth:/export/home/gnuhealth/gnuhealth-3.2.1$>
>>     vi
>>     /opt/local/gcc7/lib/gcc/x86_64-sun-solaris2.11/7.1.0/include-fixed/syslimits.h
>>
>>
>>     Thanks in advance
>>
>>
>>     Kind Regards,
>>
>>
>>     Dirk
>>
>>
>>     -- 
>>     	Dirk Willems
>>     System Engineer
>>
>>
>>     +32 (0)3 443 12 38 <tel:+32%203%20443%2012%2038>
>>     Dirk.Willems at exitas.be <mailto:Dirk.Willems at exitas.be>
>>
>>     Quality. Passion. Personality
>>
>>     www.exitas.be <http://www.exitas.be/> | Veldkant 31 | 2550 Kontich
>>
>>     Illumos OmniOS Installation and Configuration Implementation
>>     Specialist.
>>     Oracle Solaris 11 Installation and Configuration Certified
>>     Implementation Specialist. 	
>>
>>
>>
>>     _______________________________________________
>>     OmniOS-discuss mailing list
>>     OmniOS-discuss at lists.omniti.com
>>     <mailto:OmniOS-discuss at lists.omniti.com>
>>     http://lists.omniti.com/mailman/listinfo/omnios-discuss
>>     <http://lists.omniti.com/mailman/listinfo/omnios-discuss>
>
>     -- 
>     	Dirk Willems
>     System Engineer
>
>
>     +32 (0)3 443 12 38 <tel:+32%203%20443%2012%2038>
>     Dirk.Willems at exitas.be <mailto:Dirk.Willems at exitas.be>
>
>     Quality. Passion. Personality
>
>     www.exitas.be <http://www.exitas.be/> | Veldkant 31 | 2550 Kontich
>
>     Illumos OmniOS Installation and Configuration Implementation
>     Specialist.
>     Oracle Solaris 11 Installation and Configuration Certified
>     Implementation Specialist. 	
>
>
>     _______________________________________________
>     OmniOS-discuss mailing list
>     OmniOS-discuss at lists.omniti.com
>     <mailto:OmniOS-discuss at lists.omniti.com>
>     http://lists.omniti.com/mailman/listinfo/omnios-discuss
>     <http://lists.omniti.com/mailman/listinfo/omnios-discuss>
>
>
>
>
> -- 
> -Peter Tribble
> http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

-- 
	Dirk Willems
System Engineer


+32 (0)3 443 12 38
Dirk.Willems at exitas.be <mailto:Dirk.Willems at exitas.be>

Quality. Passion. Personality

www.exitas.be <http://www.exitas.be/> | Veldkant 31 | 2550 Kontich

Illumos OmniOS Installation and Configuration Implementation Specialist.
Oracle Solaris 11 Installation and Configuration Certified 
Implementation Specialist. 	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20170818/9984539b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SmallPhoenixLogotypeRGB.png
Type: image/png
Size: 4648 bytes
Desc: not available
URL: <https://omniosce.org/ml-archive/attachments/20170818/9984539b/attachment-0001.png>


More information about the OmniOS-discuss mailing list