<div dir="ltr"><div><br></div>Hi Lex<div><br></div><div>libvte occurs on both systems,</div><div><br></div><div>Lubuntu 17.04:</div><div><div><span style="font-family:monospace">$ sudo find / -type f -name "libvte.so.*" 2>/dev/null</span><br></div><div><div><span style="font-family:monospace">/usr/lib/libvte.so.9.2800.2</span><br></div></div><div><br></div>Ubuntu 17.04</div><div><div><span style="font-family:monospace">$ sudo find / -type f -name "libvte.so.*" 2>/dev/null</span><br></div><div><div><span style="font-family:monospace">/usr/lib/libvte.so.9.2800.2</span></div></div></div><div><br></div><div>"Preferences->Terminal->Execute Programs in VTE" on Ubuntu is not checked and it runs fine. It is not checked in Lubuntu either.<br></div><div><br></div><div>I created a link in Lubuntu, as suggested in the <a href="http://www.geany.org/manual/0.14/index.html#virtual-terminal-emulator-widget-vte">geany documentation</a>, as follows:</div><div><font face="monospace">$ sudo ln -s /usr/lib/dpkg/libvte.so.9.2800.2 /usr/lib/dpkg/libvte.so</font><br></div><div><br></div><div>I then checked "Preferences->Terminal->Execute Programs in VTE", and then, following a successful compile/link, the execution output in the Terminal tab is as follows:</div><div><div><font face="monospace">mw@mw:~$ cd '/home/mw/c++_Learn/learn2_c++/sqlapi'</font></div><div><font face="monospace">mw@mw:~/c++_Learn/learn2_c++/sqlapi$ </font></div><div><font face="monospace">mw@mw:~/c++_Learn/learn2_c++/sqlapi$ /bin/sh /tmp/geany_run_script_HZ143Y.sh</font></div><div><font face="monospace">/tmp/geany_run_script_HZ143Y.sh: 7: /tmp/geany_run_script_HZ143Y.sh: bash ora_connect: not found</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">------------------<br></font></div><div><font face="monospace">(program exited with code: 127)</font></div></div><div><br></div><div>Yet I am able to execute from the binary from a bash shell command line:</div><div><div><font face="monospace">mw@mw:~$ cd c++_Learn/learn2_c++/sqlapi</font></div><div><font face="monospace">mw@mw:~/c++_Learn/learn2_c++/sqlapi$ ./ora_connect </font></div><div><font face="monospace">Row : count = 0</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">Rows selected!</font></div></div><div><br></div><div>Thanks</div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">On Thu, 27 Jul 2017 at 12:15 Lex Trotman <<a href="mailto:elextr@gmail.com">elextr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 27 July 2017 at 19:47, Peter Koukoulis <<a href="mailto:pkoukoulis@gmail.com" target="_blank">pkoukoulis@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> a blank terminal appears with a heading of "geany_run_script_RCK23Y.sh", the<br>
> last 5 characters before the suffix being random on each execution.<br>
> The debug messages that appear around the time of execution are:<br>
><br>
> "10:32:59: Geany INFO : Added filetype CUDA (65).<br>
> 10:32:59: Geany INFO : Added filetype Cython (66).<br>
> 10:32:59: Geany INFO : Added filetype Graphviz (67).<br>
> 10:32:59: Geany INFO : Loaded libvte from libvte.so.9<br>
> 10:32:59: Geany INFO :<br>
> /home/mw/c++_Learn/learn2_c++/sqlapi/ora_ref_cursor.cpp : C++ (UTF-8)<br>
> 10:32:59: Geany INFO : Loaded /usr/share/geany/tags/std99.c.tags (C), 1619<br>
> symbol(s).<br>
> 10:32:59: Geany INFO : /home/mw/c++_Learn/learn2_c++/sqlapi/ora_connect.cpp<br>
> : C++ (UTF-8)<br>
> 10:32:59: Geany INFO :<br>
> /home/mw/c++_Learn/learn2_c++/sqlapi/pg_connect_test.cpp : C++ (UTF-8)<br>
> 10:32:59: fcitx-connection DEBUG : _fcitx_connection_bus_finished"<br>
><br>
> When I run the compiled and linked binary from a bash shell , then it<br>
> executes as expected, but when executed with F5 from the geany the blank<br>
> terminal appears. This is the behaviour in Lubuntu running in VirtualBox,<br>
> but on Ubuntu it executes in geany as expected.<br>
> There is no error message it seems.<br>
<br>
If it runs "in Geany" (by which I assume you mean in the terminal<br>
window) on one system and in an external terminal on another it sounds<br>
very much like the run in VTE settings Matthew asked you to check are<br>
different.  Please verify they are the same.<br>
<br>
Cheers<br>
Lex<br>
<br>
><br>
> Thanks<br>
><br>
> On Thu, 27 Jul 2017 at 00:56 Matthew Brush <<a href="mailto:mbrush@codebrainz.ca" target="_blank">mbrush@codebrainz.ca</a>> wrote:<br>
>><br>
>> On 2017-07-26 01:21 PM, Peter Koukoulis wrote:<br>
>> > Hi<br>
>> > I am running geany in both Ubuntu 17.04 (host) and Lubuntu (VirtualBox<br>
>> > guest) 17.04 . My build settings are the same on both:<br>
>> ><br>
>> > compile : g++ -g -Wall -std=c++14 -c -lboost_thread<br>
>> > -DBOOST_THREAD_VERSION=4 -pthread "%f"<br>
>> > link: g++ -g -Wall -std=c++14  -o "%e" "%f"<br>
>> > /home/bluefrog/SQLAPI/lib/libsqlapi.a -lpthread -pthread -lboost_thread<br>
>> > -DBOOST_THREAD_VERSION=4 -lboost_system -ldl -lpq<br>
>> ><br>
>> > make Object: make %e.o<br>
>> > Execute: "./%e"<br>
>> ><br>
>> > LD_LIBRARY_PATH is defined the same on both.<br>
>> ><br>
>> > When I execute (F5), having successfully compiled and linked, nothing<br>
>> > appears in the terminal on Lubuntu in the VirtualBox, but when the same<br>
>> > is<br>
>> > executed  in Ubuntu (host), all appears as expected. Could somebody<br>
>> > suggest<br>
>> > what it may be?<br>
>> ><br>
>><br>
>> It should give some kind of error in the status tab, or in the status<br>
>> bar, or at least log something in Help->Debug Messages.<br>
>><br>
>> One thing that comes to mind is that the working directories aren't<br>
>> right, but I would think that should print you some error somewhere. The<br>
>> other thing is that maybe one of them is set to run the execute command<br>
>> in Geany's builtin terminal and the other isn't (Preferences->Terminal:<br>
>> [x] Execute programs in the VTE, and [x] Don't use run script).<br>
>><br>
>> Regards,<br>
>> Matthew Brush<br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.geany.org" target="_blank">Users@lists.geany.org</a><br>
>> <a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.geany.org" target="_blank">Users@lists.geany.org</a><br>
> <a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org" target="_blank">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div></div>