fasm: command not found

Linux specific forum
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

fasm: command not found

Post by GeoTrail »

I have installed Mandrake and appearantly have successfully installed PB 3.91.
When I try to compile using pbcompile -c source.pb it gives me this error:

Code: Select all

******************************************
PureBasic Linux x86 v3.91
******************************************

Loading external modules...
Starting compilation...
5 lines processed.
Creating the executable.
sh: line 1: fasm: command not found
sh: line 1: gtk-config: command not found
gcc: purebasic.o: No such file or directory

- Feel the ..PuRe.. Power -

sh: line 1: ./purebasic.exe: No such file or directory
As I am not a Linux expert, I'm not sure if the needed files, if any, are installed.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Saboteur
Enthusiast
Enthusiast
Posts: 273
Joined: Fri Apr 25, 2003 7:09 pm
Location: (Madrid) Spain
Contact:

Post by Saboteur »

1. "fasm" command is in "compilers" directory. You need to copy it to /usr/bin (like "pbcompiler").
2. If you need to try 3D demos, you need to copy "engine3d.so" and "plugins.cfg" to your application directory.
3. You need 2 libraries to compile purebasic programs: sdl-dev and gtk+-dev (i don't know if that is the real name, you need the developers versions of sdl and gtk+).
4. Good luck, ;)
[:: PB Registered ::]

Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

1 - do a symbolic link from the "compilers" directory to /usr/bin, in a shell, it looks like : ln -s /home/foo/purebasic/compiler/fasm /usr/bin/fasm
2 - do the same thing for the engine3d.so
3 - you can generate a gtk-config by compiling the src of gtk.
4 - good luck ^_^
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Thanks Saboteur and KarLKoX.
Finally got it working.
Just compiled my first Linux app :lol:

Just wondering though, how come it has an exe extension?
Isn't that just for Windows?

And another, isn't there a PB IDE or Visual Designer for Linux?
Kinda sucks to use KWrite without syntax highlighting and the Visual Designer :|
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

Try KACE, it comes with syntax highlighting for PureBasic :)

http://linview.kylixforum.de/downloads.php

I use it with linux version of PB and it works great. Even compiles and runs your code from the editor.
Image Image
Post Reply