Help needed , debugger , linux(Ubuntu 8.04)
Help needed , debugger , linux(Ubuntu 8.04)
Hi everybody,
I'm utterly new to this forum and I hope this is the right place to this thread. I'm looking for a cross platform (Win/Linux) basic language for developing scientific software.
Among the others, I'm now trying to learn the basis of PB.
While in WinXP everything looks fine, in Ubuntu 8.04 I get an error every time I try to run a program with the debugger. Instead, if I switch the debugger off, the program runs fine.
Did anyone else find and fix this - probably trivial - problem?
Second, is the Visual Design alpha, the only native working designer for Linux?
Thanks everybody,
Massi
[edit byy Rings, set subject ]
I'm utterly new to this forum and I hope this is the right place to this thread. I'm looking for a cross platform (Win/Linux) basic language for developing scientific software.
Among the others, I'm now trying to learn the basis of PB.
While in WinXP everything looks fine, in Ubuntu 8.04 I get an error every time I try to run a program with the debugger. Instead, if I switch the debugger off, the program runs fine.
Did anyone else find and fix this - probably trivial - problem?
Second, is the Visual Design alpha, the only native working designer for Linux?
Thanks everybody,
Massi
[edit byy Rings, set subject ]
There is a confirmed problem with the debugger on kubuntu 8.04. I am working on that.
As a workaround, the debugger seems to work when run from a root account for the moment.
Are you running kubuntu or another flavor of ubuntu ?
About the Visual Designer: Yes, the alpha is the only version for Linux so far.
As a workaround, the debugger seems to work when run from a root account for the moment.
Are you running kubuntu or another flavor of ubuntu ?
About the Visual Designer: Yes, the alpha is the only version for Linux so far.
quidquid Latine dictum sit altum videtur
-
- Addict
- Posts: 4777
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Buon giorno massi. 
What do you exactly mean?
As far as I understood, PB has got three debuggers. Do you mean the debugger which is integrated in the IDE? When I run some simple code such as
the debugger window correctly shows 14, without any error message or something.
My system is Ubuntu 8.04 with Gnome desktop. All current updates installed, no special configuration.
Can you post a small but complete code snippet that causes the problem on your system?
Regards, Little John

What do you exactly mean?
As far as I understood, PB has got three debuggers. Do you mean the debugger which is integrated in the IDE? When I run some simple code such as
Code: Select all
Debug 5+9
My system is Ubuntu 8.04 with Gnome desktop. All current updates installed, no special configuration.
Can you post a small but complete code snippet that causes the problem on your system?
Regards, Little John
Let's suppose I open PB and type the program debug 5+9, as suggested by Little John.
When I press F5, I get a new window, entitled "Linker error" and stating "gcc:/tmp/purebasic_compilation0.out: no file or directory"
If I switch off the Debugger, no error message appears, but obviously I don't get anything.
Now let's pass to a more complex (!) program
When I run it with the Debugger on, I get the same error window as before. If I disable the debugger, the desired window appears and the program runs until I close the windows.
As far as gcc is concerned, in my pc I've installed the versions 3.3, 3.4 and 4.2 (packages gcc-x.y and gcc-x.y-base).
Thank you eveybody.
All the best,
Massi
[edit by Rings, set codetags ]
When I press F5, I get a new window, entitled "Linker error" and stating "gcc:/tmp/purebasic_compilation0.out: no file or directory"
If I switch off the Debugger, no error message appears, but obviously I don't get anything.
Now let's pass to a more complex (!) program
Code: Select all
Global Window_0, Text_0, Button_0
Procedure Open_Window_0()
Window_0 = OpenWindow(#PB_Any, 5, 5, 400, 200, "Window 0", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
If Window_0
If CreateGadgetList(WindowID(Window_0))
Text_0 = TextGadget(#PB_Any, 100, 40, 200, 47, "Hello World!", #PB_Text_Center)
EndIf
EndIf
EndProcedure
Open_Window_0()
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
End
As far as gcc is concerned, in my pc I've installed the versions 3.3, 3.4 and 4.2 (packages gcc-x.y and gcc-x.y-base).
Thank you eveybody.
All the best,
Massi
[edit by Rings, set codetags ]
-
- Addict
- Posts: 4777
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
My version is 4.20 (demo). I installed it to /opt/purebasic (starting from the tarball) , and modified my .cshrc file (I'm used to tcsh) like this:
setenv PUREBASIC_HOME /opt/purebasic
set path = ($PUREBASIC_HOME $path )
set path = ($PUREBASIC_HOME/compilers $path )
Finally, when running /opt/purebasic/compilers/purebasic as a superuser, I get the same behavior as when I access as a normal user.
Best,
Massi
setenv PUREBASIC_HOME /opt/purebasic
set path = ($PUREBASIC_HOME $path )
set path = ($PUREBASIC_HOME/compilers $path )
Finally, when running /opt/purebasic/compilers/purebasic as a superuser, I get the same behavior as when I access as a normal user.
Best,
Massi
-
- Addict
- Posts: 4777
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
-
- Addict
- Posts: 4777
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Hi,
according to the list in Synaptic, besides other stuff this is installed on my system
Searching for f77 in Synaptic, the matching entries are
When I had installed PB on Linux, I stumbled across the issue that the packages which are required by PB, have different names on different Linux distributions. I tried to "translate" the information from the Readme file:
I hope this is a little helpful for you,
Regards, Little John
according to the list in Synaptic, besides other stuff this is installed on my system
I'm pretty new to Linux, so I don't know whether it's necessary to have gcc-3.3 installed, when gcc-4.2 is installed, too.gcc
gcc-3.3
gcc-3.3-base
gcc-4.2
gcc-4.2-base
gcj-4.2-base
libgcc1
Searching for f77 in Synaptic, the matching entries are
Both packages are not installed here.libcnf-dev
libextutils-f77-perl
When I had installed PB on Linux, I stumbled across the issue that the packages which are required by PB, have different names on different Linux distributions. I tried to "translate" the information from the Readme file:
As far as I can see, on Ubuntu 8.04 the names of the mentioned packages/files are:README file of PB 4.20 for Linux wrote:Requierement:
-------------
- gcc
- GTK+ 2.0 devel (and optionally GTK+ 1.2 devel for old application support)
- SDL 1.2 devel
- libstdc++ devel
- iodbc and iodbc-devel to be able to use the Database commands (see www.iodbc.org)
- libgtkembedmoz.so shoud be installed to have the WebGadget() working (comes with the Mozilla package).
Once the Mozilla package is installed, you could have to do an ldconfig after have added the right path
(/usr/lib/mozilla.x.x) to /etc/ld.so.config.
- xine and xine-devel for the Movie commands
- libgnomeprintui2.2 and libgnomeprintui2.2-devel for the print commands
Maybe this is useful for you (or someone else). Due to my limited knowledge of Linux, there may be mistakes in the above list. Anyway, the listed packages are installed here, and PB 4.20 runs fine.- gcc
- libgtk2.0-dev
- libsdl1.2-dev
- libstdc++6-4.2-dev
- libiodbc2 (?) and libiodbc2-dev (?)
- libgtkembedmoz.so
- libxine1 and libxine-dev
- libgnomeprintui2.2-0 and libgnomeprintui2.2-dev
I hope this is a little helpful for you,
Regards, Little John
Hmm... there seems not to be any problems with dependencies, and the checkinstall script confirms everything should be fine...
Is there anyone who knows about the purebasic_compilation1.out file? Is it related with the debugger? Where should I find it?
Thank you to everybody for the patience...
Best,
Massi
Is there anyone who knows about the purebasic_compilation1.out file? Is it related with the debugger? Where should I find it?
Thank you to everybody for the patience...
Best,
Massi
I'm running PB 4.20 (x86 Linux) under Ubuntu 8.04 Hardy.
In PB, under Compiler > Compiler Options > Compile/Run I have checked "Create temporary executable in the source directory".
This creates a "purebasic_compilation#.out" file in the same directory where I'm editing the PB source code. As a normal user logged in, I am editing the source code and saving with no error. I know I don't have to worry about a permission error with PB writing someplace else.
In PB, under Compiler > Compiler Options > Compile/Run I have checked "Create temporary executable in the source directory".
This creates a "purebasic_compilation#.out" file in the same directory where I'm editing the PB source code. As a normal user logged in, I am editing the source code and saving with no error. I know I don't have to worry about a permission error with PB writing someplace else.