[esp-r] Re: libxml2 on OS X

Achim Geissler achim.geissler at intergga.ch
Tue Dec 3 20:24:29 GMT 2019


Hi Christopher,

on 10.13 and 10.14 the following worked for me (kind of an extract from my “tips and tricks”):

=== Check

/usr/include/

drwxr-xr-x    4 root  wheel      128 Oct 31 12:37 libxml2

drwxr-xr-x   23 root  wheel      736 Oct 31 12:37 libxslt

=== missing /usr/include? (OSX 10.14)

https://embeddedartistry.com/blog/2018/11/14/missing-usrinclude-after-updating-to-osx-1014-try-this-fix <https://embeddedartistry.com/blog/2018/11/14/missing-usrinclude-after-updating-to-osx-1014-try-this-fix>
For legacy software that looks for the macOS headers in the base system under /usr/include, please install the package file located at: /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14. pkg

((found by searching for "OSX 10.14 /usr/include missing"))

=== Check

/usr/

lrwxr-xr-x    1 root  wheel      8 Apr 26  2018 X11 -> /opt/X11

lrwxr-xr-x    1 root  wheel      8 Apr 26  2018 X11R6 -> /opt/X11

 
If all X11 libraries are already installed via XQuark, then O.K., otherwise likely 

$ sudo port install xorg-libX11

must be run.

 
=== Check

/opt/X11/include

…

lrwxr-xr-x    1 root           wheel     18 Dec  7 16:37 freetype -> freetype2/freetype

drwxr-xr-x    5 root           wheel    160 Dec  7 15:20 freetype2

lrwxr-xr-x    1 root           wheel     20 Dec  7 15:27 ft2build.h -> freetype2/ft2build.h

…

These links are necessary for ESP-r new fonts (V13.2.8+). If not set, then (in /opt/X11/include) do
 
$ sudo ln -sf freetype2/freetype freetype

and

$ sudo ln -sf freetype2/ft2build.h ft2build.h

Both symlinks seem necessary!

The path to /opt/esp-r/bin must be set (ideally both in .bashrc and .bash_profile)

===============

Best
Achim


> On 2 Dec 2019, at 22:38, Christopher Heard <cheard at prodigy.net.mx> wrote:
> 
> Hello all,
>              on using the Install option —xml I get the following
> 
>  Error: libxml2 library not found in /usr/include
>  or /usr/local/include. Support for xml output will be
>  disabled but the rest of the installation will
>  proceed normally.
> 
> I have found the libxml2-2.9.1 folder in Macintosh HD⁩ ▸ ⁨opt⁩ ▸ ⁨local⁩ ▸ ⁨share⁩ ▸ ⁨doc⁩ and copied it to /usr/local/include but the installer still gives the same error message.
> 
> If I rename the copy to simply libxml2, will this work or do I need to use an earlier version?
> 
> At least on re-running the Install with the following:
> 
> bash-3.2$ sudo ./Install -d /opt/esru --gcc4 --reuse_ish_calcs --complex --xml --force --compiler_version -6
> 
> The "--compiler_version -6” is because I am using homebrew as the package manager.
> 
> It does say that it is including xml support (after renaming the folder  libxml2-2.9.1 to  libxml2).
> 
> I do get an error message at the start "./Install: line 334: ldconfig: command not found”
> 
> Line 334 is:         ld_output=`ldconfig -p | grep libxslt`
> 
> As far as I can Google, it seems that ldconfig is not available in OS X and neither is it needed.
> 
> Can anyone confirm this?
> 
> Christopher Heard
> 
> 
>> On 29 Oct 2019, at 11:30, esp-r-request at lists.strath.ac.uk <mailto:esp-r-request at lists.strath.ac.uk> wrote:
>> 
>> Send esp-r mailing list submissions to
>> 	esp-r at lists.strath.ac.uk <mailto:esp-r at lists.strath.ac.uk>
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	http://lists.strath.ac.uk/mailman/listinfo/esp-r
>> or, via email, send a message with subject or body 'help' to
>> 	esp-r-request at lists.strath.ac.uk
>> 
>> You can reach the person managing the list at
>> 	esp-r-owner at lists.strath.ac.uk
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of esp-r digest..."
>> 
>> 
>> Today's Topics:
>> 
>>   1.  Problem on plant database compilation...
>>      (Clodoaldo Carvalho Filho)
>>   2. Re: Problem on plant database compilation... (Jon Hand)
>> 
>> 
>> ----------------------------------------------------------------------
>> 
>> Message: 1
>> Date: Tue, 29 Oct 2019 13:34:13 -0300
>> From: Clodoaldo Carvalho Filho <clodoaldo at ufc.br>
>> Subject: [esp-r]  Problem on plant database compilation...
>> To: esp-r at lists.strath.ac.uk
>> Message-ID:
>> 	<CALTyuFQiaE1U08jVUzpu2PXzQjexyULAjmDf_NXiQLi9KATghA at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>> 
>> Hello everyone,
>> 
>> I'm trying to compile esp-r v.13.3.7 source code on Unbutu 18.04 LTS with
>> gcc and GNU Fortran 8.3.0. The whole process seems to run OK except for pdb
>> and plant databases.
>> 
>> This is the output I got:
>> 
>> - installing plant components databases ...At line 192 of file pdb.F
>> Fortran runtime error: End of record
>> 
>> Error termination. Backtrace:
>> #0  0x7f2d855be70d in ???
>> #1  0x7f2d855bf235 in ???
>> #2  0x7f2d855bfc9b in ???
>> #3  0x7f2d857e1168 in ???
>> #4  0x7f2d857ed035 in ???
>> #5  0x7f2d857e466c in ???
>> #6  0x7f2d857e482b in ???
>> #7  0x7f2d857e1035 in ???
>> #8  0x564573b59b48 in ???
>> #9  0x564573b5c902 in ???
>> #10  0x7f2d84c19b96 in ???
>> #11  0x564573b4e129 in ???
>> #12  0xffffffffffffffff in ???
>> mv: n?o foi poss?vel obter estado de 'plantc.db1': Arquivo ou diret?rio
>> inexistente
>> At line 192 of file pdb.F
>> Fortran runtime error: End of record
>> 
>> Error termination. Backtrace:
>> #0  0x7f0da1cb270d in ???
>> #1  0x7f0da1cb3235 in ???
>> #2  0x7f0da1cb3c9b in ???
>> #3  0x7f0da1ed5168 in ???
>> #4  0x7f0da1ee1035 in ???
>> #5  0x7f0da1ed866c in ???
>> #6  0x7f0da1ed882b in ???
>> #7  0x7f0da1ed5035 in ???
>> #8  0x55928feafb48 in ???
>> #9  0x55928feb2902 in ???
>> #10  0x7f0da130db96 in ???
>> #11  0x55928fea4129 in ???
>> #12  0xffffffffffffffff in ???
>> mv: n?o foi poss?vel obter estado de 'plantc.db2': Arquivo ou diret?rio
>> inexistente
>> At line 192 of file pdb.F
>> Fortran runtime error: End of record
>> 
>> Error termination. Backtrace:
>> #0  0x7f832a5a370d in ???
>> #1  0x7f832a5a4235 in ???
>> #2  0x7f832a5a4c9b in ???
>> #3  0x7f832a7c6168 in ???
>> #4  0x7f832a7d2035 in ???
>> #5  0x7f832a7c966c in ???
>> #6  0x7f832a7c982b in ???
>> #7  0x7f832a7c6035 in ???
>> #8  0x55af8857cb48 in ???
>> #9  0x55af8857f902 in ???
>> #10  0x7f8329bfeb96 in ???
>> #11  0x55af88571129 in ???
>> #12  0xffffffffffffffff in ???
>> mv: n?o foi poss?vel obter estado de 'plantc.tt': Arquivo ou diret?rio
>> inexistente
>> done.
>> 
>> I experience the same problem when installing the precompiled version
>> downloaded from ESRU.
>> 
>> Any help would be appreciated.
>> 
>> Regards,
>> 
>> Clodoaldo.
>> --
>> *Prof. Clodoaldo de O. Carvalho Filho, Dr.*
>> Universidade Federal do Cear?
>> Depto. de Engenharia Mec?nica
>> Lab. de Efici?ncia Energ?tica no Conforto Ambiental - Coordenador
>> PET Engenharia Mec?nica - Tutor
>> ASHRAE Fortaleza Student Branch - Advisor
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: http://lists.strath.ac.uk/archives/esp-r/attachments/20191029/6e884809/attachment-0001.html 
>> 
>> ------------------------------
>> 
>> Message: 2
>> Date: Tue, 29 Oct 2019 17:00:29 +0000
>> From: Jon Hand <jon at esru.strath.ac.uk>
>> Subject: [esp-r] Re: Problem on plant database compilation...
>> To: Clodoaldo Carvalho Filho <clodoaldo at ufc.br>,
>> 	"esp-r at lists.strath.ac.uk"	<esp-r at lists.strath.ac.uk>
>> Message-ID:
>> 	<D30AFF4D10A0B64490B23B07B41010D4DC6F2A44 at EX2010-MBX3.ds.strath.ac.uk>
>> Content-Type: text/plain; charset="iso-8859-1"
>> 
>> 
>> This is a string buffer overflow that is happening while writing
>> the title of the application.  To correct this open up the file
>> pdb.F in a text editor and look for a string variable named pagestitle
>> change its definition to the following and this should fix the issue.
>> 
>>      character pagestitle*112 ! for banner title via epages call
>> 
>> You then need to re-compile the pdb application. 
>> 
>> Regards, Jon Hand
>> ________________________________________
>> From: esp-r-bounces at lists.strath.ac.uk [esp-r-bounces at lists.strath.ac.uk] on behalf of Clodoaldo Carvalho Filho [clodoaldo at ufc.br]
>> Sent: 29 October 2019 16:34
>> To: esp-r at lists.strath.ac.uk
>> Subject: [esp-r]  Problem on plant database compilation...
>> 
>> Hello everyone,
>> 
>> I'm trying to compile esp-r v.13.3.7 source code on Unbutu 18.04 LTS with gcc and GNU Fortran 8.3.0. The whole process seems to run OK except for pdb and plant databases.
>> 
>> This is the output I got:
>> 
>> - installing plant components databases ...At line 192 of file pdb.F
>> Fortran runtime error: End of record
>> 
>> Error termination. Backtrace:
>> #0  0x7f2d855be70d in ???
>> #1  0x7f2d855bf235 in ???
>> #2  0x7f2d855bfc9b in ???
>> #3  0x7f2d857e1168 in ???
>> #4  0x7f2d857ed035 in ???
>> #5  0x7f2d857e466c in ???
>> #6  0x7f2d857e482b in ???
>> #7  0x7f2d857e1035 in ???
>> #8  0x564573b59b48 in ???
>> #9  0x564573b5c902 in ???
>> #10  0x7f2d84c19b96 in ???
>> #11  0x564573b4e129 in ???
>> #12  0xffffffffffffffff in ???
>> mv: n?o foi poss?vel obter estado de 'plantc.db1': Arquivo ou diret?rio inexistente
>> At line 192 of file pdb.F
>> Fortran runtime error: End of record
>> 
>> Error termination. Backtrace:
>> #0  0x7f0da1cb270d in ???
>> #1  0x7f0da1cb3235 in ???
>> #2  0x7f0da1cb3c9b in ???
>> #3  0x7f0da1ed5168 in ???
>> #4  0x7f0da1ee1035 in ???
>> #5  0x7f0da1ed866c in ???
>> #6  0x7f0da1ed882b in ???
>> #7  0x7f0da1ed5035 in ???
>> #8  0x55928feafb48 in ???
>> #9  0x55928feb2902 in ???
>> #10  0x7f0da130db96 in ???
>> #11  0x55928fea4129 in ???
>> #12  0xffffffffffffffff in ???
>> mv: n?o foi poss?vel obter estado de 'plantc.db2': Arquivo ou diret?rio inexistente
>> At line 192 of file pdb.F
>> Fortran runtime error: End of record
>> 
>> Error termination. Backtrace:
>> #0  0x7f832a5a370d in ???
>> #1  0x7f832a5a4235 in ???
>> #2  0x7f832a5a4c9b in ???
>> #3  0x7f832a7c6168 in ???
>> #4  0x7f832a7d2035 in ???
>> #5  0x7f832a7c966c in ???
>> #6  0x7f832a7c982b in ???
>> #7  0x7f832a7c6035 in ???
>> #8  0x55af8857cb48 in ???
>> #9  0x55af8857f902 in ???
>> #10  0x7f8329bfeb96 in ???
>> #11  0x55af88571129 in ???
>> #12  0xffffffffffffffff in ???
>> mv: n?o foi poss?vel obter estado de 'plantc.tt<http://plantc.tt>': Arquivo ou diret?rio inexistente
>> done.
>> 
>> I experience the same problem when installing the precompiled version downloaded from ESRU.
>> 
>> Any help would be appreciated.
>> 
>> Regards,
>> 
>> Clodoaldo.
>> --
>> Prof. Clodoaldo de O. Carvalho Filho, Dr.
>> Universidade Federal do Cear?
>> Depto. de Engenharia Mec?nica
>> Lab. de Efici?ncia Energ?tica no Conforto Ambiental - Coordenador
>> PET Engenharia Mec?nica - Tutor
>> ASHRAE Fortaleza Student Branch - Advisor
>> 
>> 
>> 
>> 
>> 
>> ------------------------------
>> 
>> _______________________________________________
>> esp-r mailing list
>> esp-r at lists.strath.ac.uk
>> http://lists.strath.ac.uk/mailman/listinfo/esp-r
>> 
>> End of esp-r Digest, Vol 149, Issue 2
>> *************************************
> 
> _______________________________________________
> esp-r mailing list
> esp-r at lists.strath.ac.uk
> http://lists.strath.ac.uk/mailman/listinfo/esp-r

achim.geissler at intergga.ch




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.strath.ac.uk/archives/esp-r/attachments/20191203/32622747/attachment-0001.html 


More information about the esp-r mailing list