[SOLVED] HELP FB1.01 in LinuxMint 17.1 32bit

Linux specific questions.
Post Reply
Loe
Posts: 323
Joined: Apr 30, 2006 14:49

[SOLVED] HELP FB1.01 in LinuxMint 17.1 32bit

Post by Loe »

I followed http://freebasic.net/forum/viewtopic.ph ... stall.sh+i to install fb 1.01 in linuxmint 17.1 32bit
then install geany

I try to compile hello.bas and it the result:

fbc -w all "hello.bas" (in directory: /media/irsyad/New Volume/data/freebasic/FreeBASIC-1.01.0-linux-x86/examples)
ld: cannot find /usr/local/bin/../lib/freebasic/linux-x86/fbextra.x: Permission denied
ld: cannot find /usr/local/bin/../lib/freebasic/linux-x86/fbrt0.o: Permission denied
ld: cannot find -lfb
Compilation failed.

what wrong?
Last edited by Loe on May 24, 2015 0:21, edited 1 time in total.
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: HELP FB1.01 in LinuxMint 17.1 32bit

Post by dkl »

Hmm, strange...

Do the files exist under /usr/local/lib/freebasic/linux-x86/?
Are the permissions ok? (i.e. are they readable for non-root users?)
Loe
Posts: 323
Joined: Apr 30, 2006 14:49

Re: HELP FB1.01 in LinuxMint 17.1 32bit

Post by Loe »

dkl wrote:Hmm, strange...
yes it strange. Before that Ive tried to install fb in linuxmint x64 and it failed (I follow with additional 32bit lib in readme.txt)
dkl wrote:Do the files exist under /usr/local/lib/freebasic/linux-x86/?
I think it is
dkl wrote:Are the permissions ok? (i.e. are they readable for non-root users?)
I logged as administrator, so permission was not the caused IMHO
Loe
Posts: 323
Joined: Apr 30, 2006 14:49

Re: HELP FB1.01 in LinuxMint 17.1 32bit

Post by Loe »

try to compile in terminal, it failed with same error message.
try to compile with sudo fbc hello.bas, it give output hello but can not execute

anybody had succeeed install & compile fb 1.0 in linuxmint?
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: HELP FB1.01 in LinuxMint 17.1 32bit

Post by dkl »

I just tried with a fresh install of Linux Mint 17.1 Cinnamon inside VirtualBox, FB seems to work fine.

FB 1.02.1 downloaded and extracted, then installed with
cd FreeBASIC-1.02.1-linux-x86
sudo ./install.sh -i
Permissions of the the FB libs looking ok:
daniel@vm ~ $ ls -l /usr/local/lib/freebasic/linux-x86/
total 1852
-rw-r--r-- 1 root root 396 May 20 17:39 fbextra.x
-rw-r--r-- 1 root root 1192 May 20 17:39 fbrt0.o
-rw-r--r-- 1 root root 684364 May 20 17:39 libfb.a
-rw-r--r-- 1 root root 243584 May 20 17:39 libfbgfx.a
-rw-r--r-- 1 root root 249620 May 20 17:39 libfbgfxmt.a
-rw-r--r-- 1 root root 701490 May 20 17:39 libfbmt.a
For compiling FB programs I had to install additional libs:
sudo apt-get install libc6-dev libncurses5-dev .....
but after that, compiling in terminal or with Geany, no problem.
Loe
Posts: 323
Joined: Apr 30, 2006 14:49

Re: HELP FB1.01 in LinuxMint 17.1 32bit

Post by Loe »

Permissions of the the FB libs looking ok:
I dont have permission, think have to re-install linuxmint as yours

thank you
Loe
Posts: 323
Joined: Apr 30, 2006 14:49

Re: HELP FB1.01 in LinuxMint 17.1 32bit

Post by Loe »

This 3rd time i fresh install linuxmint
then with downloaded fb linux i follow your way:
cd FreeBASIC-1.02.1-linux-x86
sudo ./install.sh -i
and this is the result:
irsyad@irsyad-TA790GX-128M ~/Downloads/FreeBASIC-1.01.0-linux-x86 $ sudo ./install.sh -i
[sudo] password for irsyad:
sudo: ./install.sh: command not found
irsyad@irsyad-TA790GX-128M ~/Downloads/FreeBASIC-1.01.0-linux-x86 $
Im stuck.
dkl please give me step by step that realy work with linuxmin 17.1 Cinnamon and fb linux 1.01
thank you
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: HELP FB1.01 in LinuxMint 17.1 32bit

Post by dkl »

See the Linux section on: CompilerInstalling

If ./install.sh "can't be found"... then where is it? Is it really in that directory, or were the FB files extracted somewhere else? Also, were the executable permissions preserved while extracting?
Loe
Posts: 323
Joined: Apr 30, 2006 14:49

Re: HELP FB1.01 in LinuxMint 17.1 32bit

Post by Loe »

I feel really dumb now
irsyad@irsyad-TA790GX-128M ~/Downloads $ cd FreeBASIC-1.01.0-linux-x86
irsyad@irsyad-TA790GX-128M ~/Downloads/FreeBASIC-1.01.0-linux-x86 $ ls
bin changelog.txt doc examples include install.sh lib readme.txt
irsyad@irsyad-TA790GX-128M ~/Downloads/FreeBASIC-1.01.0-linux-x86 $ sudo ./install.sh -i
[sudo] password for irsyad:
sudo: ./install.sh: command not found
irsyad@irsyad-TA790GX-128M ~/Downloads/FreeBASIC-1.01.0-linux-x86 $
sure install.sh existed

the most succesed installataion was as my first post, but it fail to compile with permission problem
Loe
Posts: 323
Joined: Apr 30, 2006 14:49

Re: HELP FB1.01 in LinuxMint 17.1 32bit

Post by Loe »

Gotcha
it seem linuxmint disable root login by default, so I use this command to enable it
sudo su
and fb can install correctly
Post Reply