MacOS install failure - cannot find ssl.h, posted by Christina Swinson on Mon Dec 5 20:11:47 2016
|
Hi,
I am trying to install on MacOS Sierra. I believe that I have followed all the steps correctly, but the install is failing with the following error:
cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -o elog src/elog.c crypt.o -lssl
src/elog.c:57:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
make: *** [elog] Error 1
Help appreciated!
Thanks,
Christina |
Re: MacOS install failure - cannot find ssl.h, posted by Stefan Ritt on Tue Dec 6 09:45:03 2016
|
If you look into the documentationa at:
http://midas.psi.ch/elog/adminguide.html#unix
you will see that for Linux (as well asl MacOS) you need the libssl-dev packaged to be installed. There are many ways to install this on MacOS, I personally use the MacPorts distribution:
https://www.macports.org/ports.php?by=library&substr=openssl
Best regards,
Stefan
Christina Swinson wrote: |
Hi,
I am trying to install on MacOS Sierra. I believe that I have followed all the steps correctly, but the install is failing with the following error:
cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -o elog src/elog.c crypt.o -lssl
src/elog.c:57:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
make: *** [elog] Error 1
Help appreciated!
Thanks,
Christina
|
|
Re: MacOS install failure - cannot find ssl.h, posted by Christina Swinson on Tue Dec 6 20:32:48 2016
|
Oops!
I think that I must have skipped straight to the MacOS notes instead of reading the linux section properly.
Thanks for the help,
Christina
Stefan Ritt wrote: |
If you look into the documentationa at:
http://midas.psi.ch/elog/adminguide.html#unix
you will see that for Linux (as well asl MacOS) you need the libssl-dev packaged to be installed. There are many ways to install this on MacOS, I personally use the MacPorts distribution:
https://www.macports.org/ports.php?by=library&substr=openssl
Best regards,
Stefan
Christina Swinson wrote: |
Hi,
I am trying to install on MacOS Sierra. I believe that I have followed all the steps correctly, but the install is failing with the following error:
cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -o elog src/elog.c crypt.o -lssl
src/elog.c:57:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
make: *** [elog] Error 1
Help appreciated!
Thanks,
Christina
|
|
|
Re: MacOS install failure - cannot find ssl.h, posted by Stefan Ritt on Tue Dec 6 20:38:49 2016
|
Well, the MacOS section explicitly mentions the MacPorts installation.
Christina Swinson wrote: |
Oops!
I think that I must have skipped straight to the MacOS notes instead of reading the linux section properly.
Thanks for the help,
Christina
Stefan Ritt wrote: |
If you look into the documentationa at:
http://midas.psi.ch/elog/adminguide.html#unix
you will see that for Linux (as well asl MacOS) you need the libssl-dev packaged to be installed. There are many ways to install this on MacOS, I personally use the MacPorts distribution:
https://www.macports.org/ports.php?by=library&substr=openssl
Best regards,
Stefan
Christina Swinson wrote: |
Hi,
I am trying to install on MacOS Sierra. I believe that I have followed all the steps correctly, but the install is failing with the following error:
cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -o elog src/elog.c crypt.o -lssl
src/elog.c:57:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
make: *** [elog] Error 1
Help appreciated!
Thanks,
Christina
|
|
|
|
Re: MacOS install failure - cannot find ssl.h, posted by Christina Swinson on Tue Dec 6 20:43:48 2016
|
I responded too quickly.
I already have openssl installed via macports (this is the "Mac version" of libssl-dev).
Does anyone know where exactly elog is looking for openssl/ssl.h? I have just updated Macports and upgraded to Sierra, so maybe it's been dumped it in a different location.
Christina
Christina Swinson wrote: |
Oops!
I think that I must have skipped straight to the MacOS notes instead of reading the linux section properly.
Thanks for the help,
Christina
Stefan Ritt wrote: |
If you look into the documentationa at:
http://midas.psi.ch/elog/adminguide.html#unix
you will see that for Linux (as well asl MacOS) you need the libssl-dev packaged to be installed. There are many ways to install this on MacOS, I personally use the MacPorts distribution:
https://www.macports.org/ports.php?by=library&substr=openssl
Best regards,
Stefan
Christina Swinson wrote: |
Hi,
I am trying to install on MacOS Sierra. I believe that I have followed all the steps correctly, but the install is failing with the following error:
cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -o elog src/elog.c crypt.o -lssl
src/elog.c:57:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
make: *** [elog] Error 1
Help appreciated!
Thanks,
Christina
|
|
|
|
Re: MacOS install failure - cannot find ssl.h, posted by Stefan Ritt on Mon Dec 12 15:28:49 2016
|
My macports puts it under
/opt/local/include/openssl/ssl.h
Christina Swinson wrote: |
I responded too quickly.
I already have openssl installed via macports (this is the "Mac version" of libssl-dev).
Does anyone know where exactly elog is looking for openssl/ssl.h? I have just updated Macports and upgraded to Sierra, so maybe it's been dumped it in a different location.
Christina
Christina Swinson wrote: |
Oops!
I think that I must have skipped straight to the MacOS notes instead of reading the linux section properly.
Thanks for the help,
Christina
Stefan Ritt wrote: |
If you look into the documentationa at:
http://midas.psi.ch/elog/adminguide.html#unix
you will see that for Linux (as well asl MacOS) you need the libssl-dev packaged to be installed. There are many ways to install this on MacOS, I personally use the MacPorts distribution:
https://www.macports.org/ports.php?by=library&substr=openssl
Best regards,
Stefan
Christina Swinson wrote: |
Hi,
I am trying to install on MacOS Sierra. I believe that I have followed all the steps correctly, but the install is failing with the following error:
cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -o elog src/elog.c crypt.o -lssl
src/elog.c:57:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
make: *** [elog] Error 1
Help appreciated!
Thanks,
Christina
|
|
|
|
|
Re: MacOS install failure - cannot find ssl.h, posted by stefano bonaldo on Thu Dec 15 01:38:20 2016
|
On Sierra Macports install openssl in /opt/local/include/ , but copy it into /usr/local/include. You should able to fix it.
sudo cp -r /opt/local/include/openssl /usr/local/include/
Stefan Ritt wrote: |
My macports puts it under
/opt/local/include/openssl/ssl.h
Christina Swinson wrote: |
I responded too quickly.
I already have openssl installed via macports (this is the "Mac version" of libssl-dev).
Does anyone know where exactly elog is looking for openssl/ssl.h? I have just updated Macports and upgraded to Sierra, so maybe it's been dumped it in a different location.
Christina
Christina Swinson wrote: |
Oops!
I think that I must have skipped straight to the MacOS notes instead of reading the linux section properly.
Thanks for the help,
Christina
Stefan Ritt wrote: |
If you look into the documentationa at:
http://midas.psi.ch/elog/adminguide.html#unix
you will see that for Linux (as well asl MacOS) you need the libssl-dev packaged to be installed. There are many ways to install this on MacOS, I personally use the MacPorts distribution:
https://www.macports.org/ports.php?by=library&substr=openssl
Best regards,
Stefan
Christina Swinson wrote: |
Hi,
I am trying to install on MacOS Sierra. I believe that I have followed all the steps correctly, but the install is failing with the following error:
cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -o elog src/elog.c crypt.o -lssl
src/elog.c:57:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
make: *** [elog] Error 1
Help appreciated!
Thanks,
Christina
|
|
|
|
|
|
Re: MacOS install failure - cannot find ssl.h, posted by Stefan Ritt on Thu Dec 15 12:50:51 2016
|
On Sierre, /opt/local/include should be already included in the standar search path of the prprocessor:
/elog$ cpp -v
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.1.0
...
#include "..." search starts here:
#include <...> search starts here:
/opt/local/include
/usr/local/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
stefano bonaldo wrote: |
On Sierra Macports install openssl in /opt/local/include/ , but copy it into /usr/local/include. You should able to fix it.
sudo cp -r /opt/local/include/openssl /usr/local/include/
Stefan Ritt wrote: |
My macports puts it under
/opt/local/include/openssl/ssl.h
Christina Swinson wrote: |
I responded too quickly.
I already have openssl installed via macports (this is the "Mac version" of libssl-dev).
Does anyone know where exactly elog is looking for openssl/ssl.h? I have just updated Macports and upgraded to Sierra, so maybe it's been dumped it in a different location.
Christina
Christina Swinson wrote: |
Oops!
I think that I must have skipped straight to the MacOS notes instead of reading the linux section properly.
Thanks for the help,
Christina
Stefan Ritt wrote: |
If you look into the documentationa at:
http://midas.psi.ch/elog/adminguide.html#unix
you will see that for Linux (as well asl MacOS) you need the libssl-dev packaged to be installed. There are many ways to install this on MacOS, I personally use the MacPorts distribution:
https://www.macports.org/ports.php?by=library&substr=openssl
Best regards,
Stefan
Christina Swinson wrote: |
Hi,
I am trying to install on MacOS Sierra. I believe that I have followed all the steps correctly, but the install is failing with the following error:
cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -o elog src/elog.c crypt.o -lssl
src/elog.c:57:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
make: *** [elog] Error 1
Help appreciated!
Thanks,
Christina
|
|
|
|
|
|
|
Re: MacOS install failure - cannot find ssl.h, posted by Stefano Bonaldo on Thu Dec 15 15:04:53 2016
|
Currently, in my MacBook Pro with Sierre, the search path /opt/local/include of the prprocessor is not included.
cpp -v
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin16.1.0
....
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory) |
Re: MacOS install failure - cannot find ssl.h, posted by Stefan Ritt on Thu Dec 15 15:41:59 2016
|
export C_INCLUDE_PATH=/opt/local/include
should do the trick. Put this into your .profile
Stefano Bonaldo wrote: | Currently, in my MacBook Pro with Sierre, the search path /opt/local/include of the prprocessor is not included.
cpp -v
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin16.1.0
....
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory) |
|
Highlight code?, posted by Daniel Sajdyk on Tue Sep 6 13:35:05 2016
|
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk |
Re: Highlight code?, posted by Stefan Ritt on Tue Sep 6 13:41:32 2016
|
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
Re: Highlight code?, posted by Daniel Sajdyk on Tue Sep 6 13:45:55 2016
|
I thought so.
One more question :) I want manually add that parser (https://highlightjs.org), but I'm newby in that and don't know where ....
I know that downloaded hightlight pack I must put into folder scripts, but where to add this line:
<script>hljs.initHighlightingOnLoad();</script>
Stefan Ritt wrote: |
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
|
Re: Highlight code?, posted by Stefan Ritt on Tue Sep 6 14:02:56 2016
|
I did not know about highlight.js . You can put it into any elog page with "Bottom text = ...". I tried it for this forum and put in some C code:
#include <stdio.h>
int main()
{
// printf() displays the string inside quotation
printf("C Programming");
return 0;
}
Seems like this works nicely. Thanks for that hint.
Daniel Sajdyk wrote: |
I thought so.
One more question :) I want manually add that parser (https://highlightjs.org), but I'm newby in that and don't know where ....
I know that downloaded hightlight pack I must put into folder scripts, but where to add this line:
<script>hljs.initHighlightingOnLoad();</script>
Stefan Ritt wrote: |
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
|
|
Re: Highlight code?, posted by Daniel Sajdyk on Tue Sep 6 14:51:19 2016
|
Looks like it works :)
Code need to be put in tags:
<pre><code class="sql">...</code></pre>
but it works.
Thank you :D
Best Regards
Daniel Sajdyk
Stefan Ritt wrote: |
I did not know about highlight.js . You can put it into any elog page with "Bottom text = ...". I tried it for this forum and put in some C code:
#include <stdio.h>
int main()
{
// printf() displays the string inside quotation
printf("C Programming");
return 0;
}
Seems like this works nicely. Thanks for that hint.
Daniel Sajdyk wrote: |
I thought so.
One more question :) I want manually add that parser (https://highlightjs.org), but I'm newby in that and don't know where ....
I know that downloaded hightlight pack I must put into folder scripts, but where to add this line:
<script>hljs.initHighlightingOnLoad();</script>
Stefan Ritt wrote: |
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
|
|
|
Re: Highlight code?, posted by Stefan Ritt on Tue Sep 6 15:29:22 2016
|
In the HTML editor, you can select the code text, then select from the "Styles" drop-down the style "Computer Code", and on the "Normal" drop-down the formatting "Formatted". This puts the code in <pre> and <code> tags, so you don't have to manipulate HTML directly.
Daniel Sajdyk wrote: |
Looks like it works :)
Code need to be put in tags:
<pre><code class="sql">...</code></pre>
but it works.
Thank you :D
Best Regards
Daniel Sajdyk
Stefan Ritt wrote: |
I did not know about highlight.js . You can put it into any elog page with "Bottom text = ...". I tried it for this forum and put in some C code:
#include <stdio.h>
int main()
{
// printf() displays the string inside quotation
printf("C Programming");
return 0;
}
Seems like this works nicely. Thanks for that hint.
Daniel Sajdyk wrote: |
I thought so.
One more question :) I want manually add that parser (https://highlightjs.org), but I'm newby in that and don't know where ....
I know that downloaded hightlight pack I must put into folder scripts, but where to add this line:
<script>hljs.initHighlightingOnLoad();</script>
Stefan Ritt wrote: |
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
|
|
|
|
Re: Highlight code?, posted by Daniel Sajdyk on Tue Sep 6 22:18:29 2016
|
Ok. Thanks a lot :)
Stefan Ritt wrote: |
In the HTML editor, you can select the code text, then select from the "Styles" drop-down the style "Computer Code", and on the "Normal" drop-down the formatting "Formatted". This puts the code in <pre> and <code> tags, so you don't have to manipulate HTML directly.
Daniel Sajdyk wrote: |
Looks like it works :)
Code need to be put in tags:
<pre><code class="sql">...</code></pre>
but it works.
Thank you :D
Best Regards
Daniel Sajdyk
Stefan Ritt wrote: |
I did not know about highlight.js . You can put it into any elog page with "Bottom text = ...". I tried it for this forum and put in some C code:
#include <stdio.h>
int main()
{
// printf() displays the string inside quotation
printf("C Programming");
return 0;
}
Seems like this works nicely. Thanks for that hint.
Daniel Sajdyk wrote: |
I thought so.
One more question :) I want manually add that parser (https://highlightjs.org), but I'm newby in that and don't know where ....
I know that downloaded hightlight pack I must put into folder scripts, but where to add this line:
<script>hljs.initHighlightingOnLoad();</script>
Stefan Ritt wrote: |
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
|
|
|
|
|
Re: Highlight code?, posted by Aaron James Long on Mon Dec 12 13:35:16 2016
|
Can I ask for some clarification; I would like to include code highlighting for some computational students who will be making use of ELOG.
In the example you showed, my understanding is that you included a "Bottom text =... " entry in the forums elog config. This included the bare minimum remote call outlined by the highlightjs site. Can you clarify (as I'm having issues setting it up) should the "Bottom text=..." entry take this as a string, or should it be contained in a seperate html file in the same local directory as the cfg?
Daniel Sajdyk wrote: |
Ok. Thanks a lot :)
Stefan Ritt wrote: |
In the HTML editor, you can select the code text, then select from the "Styles" drop-down the style "Computer Code", and on the "Normal" drop-down the formatting "Formatted". This puts the code in <pre> and <code> tags, so you don't have to manipulate HTML directly.
Daniel Sajdyk wrote: |
Looks like it works :)
Code need to be put in tags:
<pre><code class="sql">...</code></pre>
but it works.
Thank you :D
Best Regards
Daniel Sajdyk
Stefan Ritt wrote: |
I did not know about highlight.js . You can put it into any elog page with "Bottom text = ...". I tried it for this forum and put in some C code:
#include <stdio.h>
int main()
{
// printf() displays the string inside quotation
printf("C Programming");
return 0;
}
Seems like this works nicely. Thanks for that hint.
Daniel Sajdyk wrote: |
I thought so.
One more question :) I want manually add that parser (https://highlightjs.org), but I'm newby in that and don't know where ....
I know that downloaded hightlight pack I must put into folder scripts, but where to add this line:
<script>hljs.initHighlightingOnLoad();</script>
Stefan Ritt wrote: |
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
|
|
|
|
|
|
Re: Highlight code?, posted by Stefan Ritt on Mon Dec 12 13:48:41 2016
|
All I did was this:
Bottom Text = <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css"><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script><script>hljs.initHighlightingOnLoad();</script>
Aaron James Long wrote: |
Can I ask for some clarification; I would like to include code highlighting for some computational students who will be making use of ELOG.
In the example you showed, my understanding is that you included a "Bottom text =... " entry in the forums elog config. This included the bare minimum remote call outlined by the highlightjs site. Can you clarify (as I'm having issues setting it up) should the "Bottom text=..." entry take this as a string, or should it be contained in a seperate html file in the same local directory as the cfg?
Daniel Sajdyk wrote: |
Ok. Thanks a lot :)
Stefan Ritt wrote: |
In the HTML editor, you can select the code text, then select from the "Styles" drop-down the style "Computer Code", and on the "Normal" drop-down the formatting "Formatted". This puts the code in <pre> and <code> tags, so you don't have to manipulate HTML directly.
Daniel Sajdyk wrote: |
Looks like it works :)
Code need to be put in tags:
<pre><code class="sql">...</code></pre>
but it works.
Thank you :D
Best Regards
Daniel Sajdyk
Stefan Ritt wrote: |
I did not know about highlight.js . You can put it into any elog page with "Bottom text = ...". I tried it for this forum and put in some C code:
#include <stdio.h>
int main()
{
// printf() displays the string inside quotation
printf("C Programming");
return 0;
}
Seems like this works nicely. Thanks for that hint.
Daniel Sajdyk wrote: |
I thought so.
One more question :) I want manually add that parser (https://highlightjs.org), but I'm newby in that and don't know where ....
I know that downloaded hightlight pack I must put into folder scripts, but where to add this line:
<script>hljs.initHighlightingOnLoad();</script>
Stefan Ritt wrote: |
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
|
|
|
|
|
|
|
Re: Highlight code?, posted by Aaron James Long on Mon Dec 12 14:04:32 2016
|
Thanks for the quicky reply Stefan. Yes, I had inut the same string! My error was not restarting the server; I've done this and code highlighting works fine.
Stefan Ritt wrote: |
All I did was this:
Bottom Text = <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css"><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script><script>hljs.initHighlightingOnLoad();</script>
Aaron James Long wrote: |
Can I ask for some clarification; I would like to include code highlighting for some computational students who will be making use of ELOG.
In the example you showed, my understanding is that you included a "Bottom text =... " entry in the forums elog config. This included the bare minimum remote call outlined by the highlightjs site. Can you clarify (as I'm having issues setting it up) should the "Bottom text=..." entry take this as a string, or should it be contained in a seperate html file in the same local directory as the cfg?
Daniel Sajdyk wrote: |
Ok. Thanks a lot :)
Stefan Ritt wrote: |
In the HTML editor, you can select the code text, then select from the "Styles" drop-down the style "Computer Code", and on the "Normal" drop-down the formatting "Formatted". This puts the code in <pre> and <code> tags, so you don't have to manipulate HTML directly.
Daniel Sajdyk wrote: |
Looks like it works :)
Code need to be put in tags:
<pre><code class="sql">...</code></pre>
but it works.
Thank you :D
Best Regards
Daniel Sajdyk
Stefan Ritt wrote: |
I did not know about highlight.js . You can put it into any elog page with "Bottom text = ...". I tried it for this forum and put in some C code:
#include <stdio.h>
int main()
{
// printf() displays the string inside quotation
printf("C Programming");
return 0;
}
Seems like this works nicely. Thanks for that hint.
Daniel Sajdyk wrote: |
I thought so.
One more question :) I want manually add that parser (https://highlightjs.org), but I'm newby in that and don't know where ....
I know that downloaded hightlight pack I must put into folder scripts, but where to add this line:
<script>hljs.initHighlightingOnLoad();</script>
Stefan Ritt wrote: |
You can manually highlight code, but there is no automatic language parser.
Daniel Sajdyk wrote: |
Hello :)
Is there any way to highlight code (for example php, SQL) in elogs entries?
Best Regards
Daniel Sajdyk
|
|
|
|
|
|
|
|
|
|
Datepicker not showing, posted by Christine Quicot on Thu Dec 8 15:39:13 2016
|
Hello users,
When I configure an attribute with "Type <attribute>= date", in the new entry form a clic on the calendar symbol does nothing.
Reading the source code I see it's trying to open a window named "cal.html" through javascript (function opencal) but this file doesn't exist anywhere in source elog files.
Thanks
|
Re: Datepicker not showing, posted by Andreas Luedeke on Mon Dec 12 09:48:14 2016
|
Just last week I've downloaded the latest version of ELOG, compiled and installed it, and the date picker just works fine.
In my case it was an update of an existing installation. Can you provide a bit more information about your case: I guess it was a first time installation? Was is ELOG V3.1.2-754330e or a different GIT version?
Stefan, could you please add an attribute of type "datetime" and "date" to one of the demo logbooks? Currently there is non. Maybe to elog:Database? Then we can check if it is a client problem.
Cheers, Andreas
Christine Quicot wrote: |
Hello users,
When I configure an attribute with "Type <attribute>= date", in the new entry form a clic on the calendar symbol does nothing.
Reading the source code I see it's trying to open a window named "cal.html" through javascript (function opencal) but this file doesn't exist anywhere in source elog files.
Thanks
|
|
Re: Datepicker not showing, posted by Stefan Ritt on Mon Dec 12 10:14:50 2016
|
I put one in https://midas.psi.ch/elogs/Database/?cmd=New
Could also be a pop-up blocker problem. Let's see.
Stefan
Andreas Luedeke wrote: |
Just last week I've downloaded the latest version of ELOG, compiled and installed it, and the date picker just works fine.
In my case it was an update of an existing installation. Can you provide a bit more information about your case: I guess it was a first time installation? Was is ELOG V3.1.2-754330e or a different GIT version?
Stefan, could you please add an attribute of type "datetime" and "date" to one of the demo logbooks? Currently there is non. Maybe to elog:Database? Then we can check if it is a client problem.
Cheers, Andreas
Christine Quicot wrote: |
Hello users,
When I configure an attribute with "Type <attribute>= date", in the new entry form a clic on the calendar symbol does nothing.
Reading the source code I see it's trying to open a window named "cal.html" through javascript (function opencal) but this file doesn't exist anywhere in source elog files.
Thanks
|
|
|
What's the best way to update elog to newer release?, posted by Xuan Wu on Tue Dec 6 13:29:40 2016
|
If the older elog has some customized file such as logbooks, elogd.cfg, elog.css, images and so on, What's the best way to update elog to newer release? Is it the only way to copy these files to the new release? |
Re: What's the best way to update elog to newer release?, posted by Stefan Ritt on Tue Dec 6 14:23:34 2016
|
Make a backup of all you files, then install the new version over the old one, keeping all customizations, then restart elog.
Xuan Wu wrote: |
If the older elog has some customized file such as logbooks, elogd.cfg, elog.css, images and so on, What's the best way to update elog to newer release? Is it the only way to copy these files to the new release?
|
|
, posted by Tim Schelfhout on Mon Dec 5 13:06:21 2016
|
Hello,
I am using ELOG V2.9.2-2475. I added some groups and restarted ELOG and all of a sudden it |
Disable Delete option when user has the capability to Edit an entry, posted by John Becker on Wed Nov 30 18:06:26 2016
|
Hi, I have a logbook where users can add entries and edit entries.
The delete option has been removed from the menu, but when they edit an entry they are able to delete the entry.
Is there a way to remove the Delete option from the menu that appears when Editing an entry?
Please advise,
Thanks,
John
|
Re: Disable Delete option when user has the capability to Edit an entry, posted by Stefan Ritt on Wed Nov 30 19:01:03 2016
|
Save drafts = 0
John Becker wrote: |
Hi, I have a logbook where users can add entries and edit entries.
The delete option has been removed from the menu, but when they edit an entry they are able to delete the entry.
Is there a way to remove the Delete option from the menu that appears when Editing an entry?
Please advise,
Thanks,
John
|
|
Re: Disable Delete option when user has the capability to Edit an entry, posted by John Becker on Thu Dec 1 13:36:16 2016
|
Hi Stefan,
Thanks for your reply, I did as suggested but the button "Delete" still appears when the edit entry is selected.
Am I overlooking something?
Regards,
John
Stefan Ritt wrote: |
Save drafts = 0
John Becker wrote: |
Hi, I have a logbook where users can add entries and edit entries.
The delete option has been removed from the menu, but when they edit an entry they are able to delete the entry.
Is there a way to remove the Delete option from the menu that appears when Editing an entry?
Please advise,
Thanks,
John
|
|
|
Re: Disable Delete option when user has the capability to Edit an entry, posted by Stefan Ritt on Fri Dec 2 13:50:11 2016
|
No, I get a different result. If I put "Save drafts = 0" in the config example coming with the distribution, I get the following:

sot he "Delete" button is replaced by a "Back" button.
Probably you have an old version of elog, hava a typo on your config, or something like that.
Stefan |
Re: Disable Delete option when user has the capability to Edit an entry, posted by John Becker on Fri Dec 2 16:28:17 2016
|
Hi Stefan,
Found it, it was a typo.
Thanks for your patience and support.
Regards,
John
Stefan Ritt wrote: |
No, I get a different result. If I put "Save drafts = 0" in the config example coming with the distribution, I get the following:

sot he "Delete" button is replaced by a "Back" button.
Probably you have an old version of elog, hava a typo on your config, or something like that.
Stefan
|
|
Display of draft entries in elog, posted by Stefan Ritt on Fri Dec 2 13:54:36 2016
|
Dear all,
there seems to be still lots of confusion with the new "draft modus" introduced in elog 3.1.2. Here is how it works:
If you edit an old or new entry, your changes are written to the elog server every few seconds. The entry in the elog database is marked as "draft". The idea behind that is that if your browser crashes or you navigate away from the elog page without saving your entry, the "draft" entry is sill in the elog database and can be recovered later. This is typically useful on some shift logbooks, where people keep the entry open for many hours and add things every few minutes. If they have a crash, they would loose a few hours of information.
The draft modus now has a few drawbacks:
- If you have some draft entries in your elog database, you don't see them until you hit "New" the next time. Then the system offers you to continue the open draft entries.
- Once you change an existing entry, you cannot go back to the version of that entry before you started to make modifications. The only option is to keep the current version or delete the whole entry. The old version of your entry in the database is overwritten every few seconds with the current contents of your edit text field.
To fix the first problem, I introduced a new flag "List drafts = 0|1". If this flag is 1, the draft entries are shown in the list view. The default value for this flag is 1, so normally you should see the draft entries in the database. You should refrain from editing these entries if you know that currently somebody else is working on them, otherwise you will overwrite each other's modifications. The modification is in the current git version of elog which is 3.1.2-6ec506b.
The scond drawback is harder to address. In order to go back to previous version, you would need a full version system (ala git), which is far beyond the scope of elog. I'm working on a partial fix by storing the contents on an entry inside the browser when you start editing an entry. You can then "cancel" your modifications by pasting back the original version from your browser. This works of course only if your browser does not crash or you do not navigate away from the elog page, in which case the original version will be lost.
If anybody has a strong opinion about these changes, please post them here.
Stefan |
Re: Display of draft entries in elog, posted by Stefan Ritt on Fri Dec 2 14:54:58 2016
|
In version 3.1.2-416db9f I implemented a "Restore" button, which should fix the second drawback. If you press it, you should be able to go back to where you started when editing an entry. |
Error: Entry text too big. Please increase TEXT_SIZE and recompile elogd, posted by Xuan Wu on Fri Nov 25 15:00:58 2016
|
Hi all,
A error came out when I pasted a photo in the text area with HTML Encoding. The photo is a snapshot from Print Screen. When I submitted it, it said "Entry text too big. Please increase TEXT_SIZE and recompile elogd". How can I get rid of this? I've tried changing elogd.cfg that: ;Message Height = ;Message Width = or Message Height = 500 Message Width = 500. None of these work.
By the way, I want to ask another question that whether it can load a photo on local disk not only the photo URL by click image of the Image info in CKEditor. Can CKFinder integrate in CKEditor and then it can browse local file on tab of image info. My colleagues prefer pasting photos in text area than uploading it as attachment in our site.
Any advice or sugguestion will be appreciated.
|
Re: Error: Entry text too big. Please increase TEXT_SIZE and recompile elogd, posted by Stefan Ritt on Mon Nov 28 11:56:06 2016
|
I guee you tried to paste an image into the text area, and your browser somehow converted this into a text entry, which then of course can become very long. Elog since vesion 3 supports drag-and-drop. You can drop an image from your local disk into the "Drop attachemnts here..." box at the bottom of this page. You can also drag an image directly to the text box like this one: , but some browser might not work correctly. If it's not working for you, try it in the demo logbook https://midas.psi.ch/elogs/Linux+Demo/ If it works there, please update your elog to the newest release and you should get it.
Stefan
Xuan Wu wrote: |
Hi all,
A error came out when I pasted a photo in the text area with HTML Encoding. The photo is a snapshot from Print Screen. When I submitted it, it said "Entry text too big. Please increase TEXT_SIZE and recompile elogd". How can I get rid of this? I've tried changing elogd.cfg that: ;Message Height = ;Message Width = or Message Height = 500 Message Width = 500. None of these work.
By the way, I want to ask another question that whether it can load a photo on local disk not only the photo URL by click image of the Image info in CKEditor. Can CKFinder integrate in CKEditor and then it can browse local file on tab of image info. My colleagues prefer pasting photos in text area than uploading it as attachment in our site.
Any advice or sugguestion will be appreciated.
|
|
Re: Error: Entry text too big. Please increase TEXT_SIZE and recompile elogd, posted by Xuan Wu on Wed Nov 30 02:29:36 2016
|
Thanks for your advice! I've test that dropping an image from my local disk into the text box with Elog-3.1.2. It did work. However, I still have a question want to ask that When I paste a small image into the text area, I can submit it successfully. But when I paste a bigger one, it will say "Entry text too big. Please increase TEXT_SIZE and recompile elogd". And There's the same result in https://midas.psi.ch/elogs/Linux+Demo/. I can drop the image into text area now, so it doesn't matter.
Stefan Ritt wrote: |
I guee you tried to paste an image into the text area, and your browser somehow converted this into a text entry, which then of course can become very long. Elog since vesion 3 supports drag-and-drop. You can drop an image from your local disk into the "Drop attachemnts here..." box at the bottom of this page. You can also drag an image directly to the text box like this one: , but some browser might not work correctly. If it's not working for you, try it in the demo logbook https://midas.psi.ch/elogs/Linux+Demo/ If it works there, please update your elog to the newest release and you should get it.
Stefan
Xuan Wu wrote: |
Hi all,
A error came out when I pasted a photo in the text area with HTML Encoding. The photo is a snapshot from Print Screen. When I submitted it, it said "Entry text too big. Please increase TEXT_SIZE and recompile elogd". How can I get rid of this? I've tried changing elogd.cfg that: ;Message Height = ;Message Width = or Message Height = 500 Message Width = 500. None of these work.
By the way, I want to ask another question that whether it can load a photo on local disk not only the photo URL by click image of the Image info in CKEditor. Can CKFinder integrate in CKEditor and then it can browse local file on tab of image info. My colleagues prefer pasting photos in text area than uploading it as attachment in our site.
Any advice or sugguestion will be appreciated.
|
|
|
Re: Error: Entry text too big. Please increase TEXT_SIZE and recompile elogd, posted by Stefan Ritt on Wed Nov 30 08:51:55 2016
|
How big is your image? I just tried a 5000 x 3600 pixel image (8 MB in size), and it worked fine on the demo logbook.
Stefan
Xuan Wu wrote: |
Thanks for your advice! I've test that dropping an image from my local disk into the text box with Elog-3.1.2. It did work. However, I still have a question want to ask that When I paste a small image into the text area, I can submit it successfully. But when I paste a bigger one, it will say "Entry text too big. Please increase TEXT_SIZE and recompile elogd". And There's the same result in https://midas.psi.ch/elogs/Linux+Demo/. I can drop the image into text area now, so it doesn't matter.
Stefan Ritt wrote: |
I guee you tried to paste an image into the text area, and your browser somehow converted this into a text entry, which then of course can become very long. Elog since vesion 3 supports drag-and-drop. You can drop an image from your local disk into the "Drop attachemnts here..." box at the bottom of this page. You can also drag an image directly to the text box like this one: , but some browser might not work correctly. If it's not working for you, try it in the demo logbook https://midas.psi.ch/elogs/Linux+Demo/ If it works there, please update your elog to the newest release and you should get it.
Stefan
Xuan Wu wrote: |
Hi all,
A error came out when I pasted a photo in the text area with HTML Encoding. The photo is a snapshot from Print Screen. When I submitted it, it said "Entry text too big. Please increase TEXT_SIZE and recompile elogd". How can I get rid of this? I've tried changing elogd.cfg that: ;Message Height = ;Message Width = or Message Height = 500 Message Width = 500. None of these work.
By the way, I want to ask another question that whether it can load a photo on local disk not only the photo URL by click image of the Image info in CKEditor. Can CKFinder integrate in CKEditor and then it can browse local file on tab of image info. My colleagues prefer pasting photos in text area than uploading it as attachment in our site.
Any advice or sugguestion will be appreciated.
|
|
|
|
Re: Error: Entry text too big. Please increase TEXT_SIZE and recompile elogd, posted by Xuan Wu on Thu Dec 1 01:40:14 2016
|
I just test on your Demo logbook. I use a screen-capture tool to create an image which doesn't been saved as a file, the size is 1920*1080(1.8M), then copy it in clipboard, and then paste in text area. Then the web page become very slow, so that I can't submit it sometime. Sometime, I can submit it but it say "Entry text too big. Please increase TEXT_SIZE and recompile elogd". If I drop an image file into the text area, it works. I used IE11.
Stefan Ritt wrote: |
How big is your image? I just tried a 5000 x 3600 pixel image (8 MB in size), and it worked fine on the demo logbook.
Stefan
Xuan Wu wrote: |
Thanks for your advice! I've test that dropping an image from my local disk into the text box with Elog-3.1.2. It did work. However, I still have a question want to ask that When I paste a small image into the text area, I can submit it successfully. But when I paste a bigger one, it will say "Entry text too big. Please increase TEXT_SIZE and recompile elogd". And There's the same result in https://midas.psi.ch/elogs/Linux+Demo/. I can drop the image into text area now, so it doesn't matter.
Stefan Ritt wrote: |
I guee you tried to paste an image into the text area, and your browser somehow converted this into a text entry, which then of course can become very long. Elog since vesion 3 supports drag-and-drop. You can drop an image from your local disk into the "Drop attachemnts here..." box at the bottom of this page. You can also drag an image directly to the text box like this one: , but some browser might not work correctly. If it's not working for you, try it in the demo logbook https://midas.psi.ch/elogs/Linux+Demo/ If it works there, please update your elog to the newest release and you should get it.
Stefan
Xuan Wu wrote: |
Hi all,
A error came out when I pasted a photo in the text area with HTML Encoding. The photo is a snapshot from Print Screen. When I submitted it, it said "Entry text too big. Please increase TEXT_SIZE and recompile elogd". How can I get rid of this? I've tried changing elogd.cfg that: ;Message Height = ;Message Width = or Message Height = 500 Message Width = 500. None of these work.
By the way, I want to ask another question that whether it can load a photo on local disk not only the photo URL by click image of the Image info in CKEditor. Can CKFinder integrate in CKEditor and then it can browse local file on tab of image info. My colleagues prefer pasting photos in text area than uploading it as attachment in our site.
Any advice or sugguestion will be appreciated.
|
|
|
|
|
Re: Error: Entry text too big. Please increase TEXT_SIZE and recompile elogd, posted by Stefan Ritt on Thu Dec 1 08:13:41 2016
|
Ah, that's the difference! I always drop an image on the text area, never paste it. So please refrain from pasting.
Xuan Wu wrote: |
I just test on your Demo logbook. I use a screen-capture tool to create an image which doesn't been saved as a file, the size is 1920*1080(1.8M), then copy it in clipboard, and then paste in text area. Then the web page become very slow, so that I can't submit it sometime. Sometime, I can submit it but it say "Entry text too big. Please increase TEXT_SIZE and recompile elogd". If I drop an image file into the text area, it works. I used IE11.
Stefan Ritt wrote: |
How big is your image? I just tried a 5000 x 3600 pixel image (8 MB in size), and it worked fine on the demo logbook.
Stefan
Xuan Wu wrote: |
Thanks for your advice! I've test that dropping an image from my local disk into the text box with Elog-3.1.2. It did work. However, I still have a question want to ask that When I paste a small image into the text area, I can submit it successfully. But when I paste a bigger one, it will say "Entry text too big. Please increase TEXT_SIZE and recompile elogd". And There's the same result in https://midas.psi.ch/elogs/Linux+Demo/. I can drop the image into text area now, so it doesn't matter.
Stefan Ritt wrote: |
I guee you tried to paste an image into the text area, and your browser somehow converted this into a text entry, which then of course can become very long. Elog since vesion 3 supports drag-and-drop. You can drop an image from your local disk into the "Drop attachemnts here..." box at the bottom of this page. You can also drag an image directly to the text box like this one: , but some browser might not work correctly. If it's not working for you, try it in the demo logbook https://midas.psi.ch/elogs/Linux+Demo/ If it works there, please update your elog to the newest release and you should get it.
Stefan
Xuan Wu wrote: |
Hi all,
A error came out when I pasted a photo in the text area with HTML Encoding. The photo is a snapshot from Print Screen. When I submitted it, it said "Entry text too big. Please increase TEXT_SIZE and recompile elogd". How can I get rid of this? I've tried changing elogd.cfg that: ;Message Height = ;Message Width = or Message Height = 500 Message Width = 500. None of these work.
By the way, I want to ask another question that whether it can load a photo on local disk not only the photo URL by click image of the Image info in CKEditor. Can CKFinder integrate in CKEditor and then it can browse local file on tab of image info. My colleagues prefer pasting photos in text area than uploading it as attachment in our site.
Any advice or sugguestion will be appreciated.
|
|
|
|
|
|
|