[Geany-Users] geany on Lubuntu in VirtualBox

Lex Trotman elextr at xxxxx
Sat Jul 29 09:14:02 UTC 2017


On 29 July 2017 at 18:13, Peter Koukoulis <pkoukoulis at gmail.com> wrote:
>
> Hi Lex
>
> libvte occurs on both systems,
>
> Lubuntu 17.04:
> $ sudo find / -type f -name "libvte.so.*" 2>/dev/null
> /usr/lib/libvte.so.9.2800.2
>
> Ubuntu 17.04
> $ sudo find / -type f -name "libvte.so.*" 2>/dev/null
> /usr/lib/libvte.so.9.2800.2
>
> "Preferences->Terminal->Execute Programs in VTE" on Ubuntu is not checked
> and it runs fine. It is not checked in Lubuntu either.
>
> I created a link in Lubuntu, as suggested in the geany documentation, as
> follows:
> $ sudo ln -s /usr/lib/dpkg/libvte.so.9.2800.2 /usr/lib/dpkg/libvte.so
>
> 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:
> mw at mw:~$ cd '/home/mw/c++_Learn/learn2_c++/sqlapi'
> mw at mw:~/c++_Learn/learn2_c++/sqlapi$
> mw at mw:~/c++_Learn/learn2_c++/sqlapi$ /bin/sh /tmp/geany_run_script_HZ143Y.sh
> /tmp/geany_run_script_HZ143Y.sh: 7: /tmp/geany_run_script_HZ143Y.sh: bash
> ora_connect: not found
>
> ------------------
> (program exited with code: 127)
>
> Yet I am able to execute from the binary from a bash shell command line:
> mw at mw:~$ cd c++_Learn/learn2_c++/sqlapi
> mw at mw:~/c++_Learn/learn2_c++/sqlapi$ ./ora_connect
> Row : count = 0
>
> Rows selected!

The bash command line is an interactive shell, it reads different
startup fines than one started as a non-interactive shell with the
name `sh` as Geany does.  It sounds like something is set up in your
profile or other startup read in an interactive shell that is not set
up in a startup read in a non-interactive shell.

See https://www.gnu.org/software/bash/manual/bash.html#Bash-Startup-Files

Cheers
Lex

>
> Thanks
>
>
> On Thu, 27 Jul 2017 at 12:15 Lex Trotman <elextr at gmail.com> wrote:
>>
>> On 27 July 2017 at 19:47, Peter Koukoulis <pkoukoulis at gmail.com> wrote:
>> > Hi,
>> >
>> > a blank terminal appears with a heading of "geany_run_script_RCK23Y.sh",
>> > the
>> > last 5 characters before the suffix being random on each execution.
>> > The debug messages that appear around the time of execution are:
>> >
>> > "10:32:59: Geany INFO : Added filetype CUDA (65).
>> > 10:32:59: Geany INFO : Added filetype Cython (66).
>> > 10:32:59: Geany INFO : Added filetype Graphviz (67).
>> > 10:32:59: Geany INFO : Loaded libvte from libvte.so.9
>> > 10:32:59: Geany INFO :
>> > /home/mw/c++_Learn/learn2_c++/sqlapi/ora_ref_cursor.cpp : C++ (UTF-8)
>> > 10:32:59: Geany INFO : Loaded /usr/share/geany/tags/std99.c.tags (C),
>> > 1619
>> > symbol(s).
>> > 10:32:59: Geany INFO :
>> > /home/mw/c++_Learn/learn2_c++/sqlapi/ora_connect.cpp
>> > : C++ (UTF-8)
>> > 10:32:59: Geany INFO :
>> > /home/mw/c++_Learn/learn2_c++/sqlapi/pg_connect_test.cpp : C++ (UTF-8)
>> > 10:32:59: fcitx-connection DEBUG : _fcitx_connection_bus_finished"
>> >
>> > When I run the compiled and linked binary from a bash shell , then it
>> > executes as expected, but when executed with F5 from the geany the blank
>> > terminal appears. This is the behaviour in Lubuntu running in
>> > VirtualBox,
>> > but on Ubuntu it executes in geany as expected.
>> > There is no error message it seems.
>>
>> If it runs "in Geany" (by which I assume you mean in the terminal
>> window) on one system and in an external terminal on another it sounds
>> very much like the run in VTE settings Matthew asked you to check are
>> different.  Please verify they are the same.
>>
>> Cheers
>> Lex
>>
>> >
>> > Thanks
>> >
>> > On Thu, 27 Jul 2017 at 00:56 Matthew Brush <mbrush at codebrainz.ca> wrote:
>> >>
>> >> On 2017-07-26 01:21 PM, Peter Koukoulis wrote:
>> >> > Hi
>> >> > I am running geany in both Ubuntu 17.04 (host) and Lubuntu
>> >> > (VirtualBox
>> >> > guest) 17.04 . My build settings are the same on both:
>> >> >
>> >> > compile : g++ -g -Wall -std=c++14 -c -lboost_thread
>> >> > -DBOOST_THREAD_VERSION=4 -pthread "%f"
>> >> > link: g++ -g -Wall -std=c++14  -o "%e" "%f"
>> >> > /home/bluefrog/SQLAPI/lib/libsqlapi.a -lpthread -pthread
>> >> > -lboost_thread
>> >> > -DBOOST_THREAD_VERSION=4 -lboost_system -ldl -lpq
>> >> >
>> >> > make Object: make %e.o
>> >> > Execute: "./%e"
>> >> >
>> >> > LD_LIBRARY_PATH is defined the same on both.
>> >> >
>> >> > When I execute (F5), having successfully compiled and linked, nothing
>> >> > appears in the terminal on Lubuntu in the VirtualBox, but when the
>> >> > same
>> >> > is
>> >> > executed  in Ubuntu (host), all appears as expected. Could somebody
>> >> > suggest
>> >> > what it may be?
>> >> >
>> >>
>> >> It should give some kind of error in the status tab, or in the status
>> >> bar, or at least log something in Help->Debug Messages.
>> >>
>> >> One thing that comes to mind is that the working directories aren't
>> >> right, but I would think that should print you some error somewhere.
>> >> The
>> >> other thing is that maybe one of them is set to run the execute command
>> >> in Geany's builtin terminal and the other isn't (Preferences->Terminal:
>> >> [x] Execute programs in the VTE, and [x] Don't use run script).
>> >>
>> >> Regards,
>> >> Matthew Brush
>> >> _______________________________________________
>> >> Users mailing list
>> >> Users at lists.geany.org
>> >> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>> >
>> >
>> > _______________________________________________
>> > Users mailing list
>> > Users at lists.geany.org
>> > https://lists.geany.org/cgi-bin/mailman/listinfo/users
>> >
>> _______________________________________________
>> Users mailing list
>> Users at lists.geany.org
>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>


More information about the Users mailing list