No such file or directory

Linux specific questions.
Post Reply
gellis_aeneas
Posts: 7
Joined: Oct 22, 2019 19:40

No such file or directory

Post by gellis_aeneas »

[gellis@gellis examples]$ fbc hello.bas
bash: /usr/local/bin/fbc: No such file or directory
[gellis@gellis examples]$ ll /usr/local/bin/fbc
-rwxr-xr-x. 1 root root 1502848 May 31 13:36 /usr/local/bin/fbc
[gellis@gellis examples]$

Any help will be appreciated.
badidea
Posts: 2586
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: No such file or directory

Post by badidea »

Here, on Ubuntu mate 18.04, installed at the default location: /usr/local/bin/
Which is in the 'path' so I only have to type 'fbc'
How did you install it? Did you read the 'readme.txt' and ran "sudo ./install.sh -i" as mentioned?
It could be missing libs as well. Did you install 32 or 64 bit fbc?
Looking at the file size: the 32-bit version. That (can) requires additional libs.
Which distro do you run?

Note, I actually renamed fbc to have both 32 and 64 bit versions of it:
ls -l /usr/local/bin/fbc*
-rwxr-xr-x 1 root root 1502848 Dec 16 20:14 /usr/local/bin/fbc32
-rwxr-xr-x 1 root root 2144448 Dec 16 20:16 /usr/local/bin/fbc64
Last edited by badidea on May 31, 2020 20:01, edited 1 time in total.
gellis_aeneas
Posts: 7
Joined: Oct 22, 2019 19:40

Re: No such file or directory

Post by gellis_aeneas »

Yes I did the install ./install.sh -i
Here is some additional information that may help you find my problem:

[gellis@gellis examples]$ command -v fbc
/usr/local/bin/fbc
[gellis@gellis examples]$ uname -a
Linux gellis.home 5.6.13-200.fc31.x86_64 #1 SMP Thu May 14 23:26:14 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[gellis@gellis examples]$ cat /etc/os-release
NAME=Fedora
VERSION="31 (Workstation Edition)"
ID=fedora
VERSION_ID=31
VERSION_CODENAME=""
PLATFORM_ID="platform:f31"
PRETTY_NAME="Fedora 31 (Workstation Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:31"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fe ... ors-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communic ... tting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=31
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=31
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
[gellis@gellis examples]$ ls -l /usr/local/bin/fbc
-rwxr-xr-x. 1 root root 1502848 May 31 13:36 /usr/local/bin/fbc
[gellis@gellis examples]$ file /usr/local/bin/fbc
/usr/local/bin/fbc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.0, not stripped
badidea
Posts: 2586
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: No such file or directory

Post by badidea »

ELF 32-bit LSB executable
Try the 64-bit fbc, that requires less extra libraries.
gellis_aeneas
Posts: 7
Joined: Oct 22, 2019 19:40

Re: No such file or directory

Post by gellis_aeneas »

MyBad::
There is a difference between -
FreeBASIC-1.07.1-linux-x86_64.tar.gz
FreeBASIC-1.07.1-linux-x86.tar.gz

When I reinstalled with FreeBASIC-1.07.1-linux-x86_64.tar.gz I was able to run the example file hello.bas.

I still get an error but at lease it does work.
systemctl
Posts: 182
Joined: Mar 27, 2020 5:15

Re: No such file or directory

Post by systemctl »

gellis_aeneas wrote:I still get an error but at lease it does work.
Which error?
Post Reply