command 'ld' utils not found?

Post here if you are a new Porteus member and you're looking for some help.
Merlin
White ninja
White ninja
Posts: 4
Joined: 25 Apr 2017, 13:20
Distribution: Slackware
Location: Indonesia

command 'ld' utils not found?

Post#1 by Merlin » 25 Apr 2017, 13:33

Hi, I am new on Porteus. I have problem when I trying install packages from slackbuild, when process compile I am getting error like this "/usr/bin/ld no such directory". How to fix this? What recommended packages for me to do installation from slackbuild? By the way, I tried install epson printer driver and the problem has came up

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: command 'ld' utils not found?

Post#2 by Bogomips » 25 Apr 2017, 15:26

Welcome to Porteus.

Code: Select all

guest@porteus:~$ ls /usr/bin/ld
/usr/bin/ld@
guest@porteus:~$ file /usr/bin/ld
/usr/bin/ld: symbolic link to ld.bfd
guest@porteus:~$ file /usr/bin/ld.bfd
/usr/bin/ld.bfd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, stripped, with debug_info
Please always supply details of architecture (32/64 bit), Desktop being used, and Porteus version, which will make it easier to help you. :)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Merlin
White ninja
White ninja
Posts: 4
Joined: 25 Apr 2017, 13:20
Distribution: Slackware
Location: Indonesia

Re: command 'ld' utils not found?

Post#3 by Merlin » 25 Apr 2017, 17:01

I am using porteus kde x86_64. There's nothing 'ld' command, I am create bootable usb with command 'cp -rf /home/myuser/porteus-extract/* /mnt/sdb1'

/mnt/sdb1 is usb drive directory, any problem with create bootable usb from above methods?

Merlin
White ninja
White ninja
Posts: 4
Joined: 25 Apr 2017, 13:20
Distribution: Slackware
Location: Indonesia

Re: command 'ld' utils not found?

Post#4 by Merlin » 25 Apr 2017, 17:55

Here my result from terminal

Code: Select all

guest@porteus:~$ whereis ld
ld:
guest@porteus:~$ ls /usr/bin/ld
/bin/ls: cannot access '/usr/bin/ld': No such file or directory
guest@porteus:~$ which ld
which: no ld in (/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts)
It looks so strange? :%)

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: command 'ld' utils not found?

Post#5 by Blaze » 25 Apr 2017, 19:14

Merlin wrote:I am create bootable usb with command 'cp -rf /home/myuser/porteus-extract/* /mnt/sdb1'

/mnt/sdb1 is usb drive directory
If you running in Porteus, open terminal and type

Code: Select all

su
toor
mloop /patch-to/Porteus.iso
cp -a /mnt/loop/* /mnt/sdb1/
sh +x /mnt/sdb1/boot/Porteus-installer-for-Linux.com
uloop

Code: Select all

guest@porteus:~$ whereis ld
ld: /usr/bin/ld /usr/bin/ld.bfd /usr/bin/ld.gold
guest@porteus:~$ ls /usr/bin/ld
/usr/bin/ld@
guest@porteus:~$ which ld
/usr/bin/ld
guest@porteus:~$
Welcome to http://ftp.nluug.nl/os/Linux/distr/port ... us-v3.2.2/
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Merlin
White ninja
White ninja
Posts: 4
Joined: 25 Apr 2017, 13:20
Distribution: Slackware
Location: Indonesia

Re: command 'ld' utils not found?

Post#6 by Merlin » 25 Apr 2017, 19:34

I am using another distribution. Are step-by-step above it can do it?

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: command 'ld' utils not found?

Post#7 by Ed_P » 26 Apr 2017, 04:04

Merlin wrote:I have problem when I trying install packages from slackbuild,
I'm not sure what you mean by "install packages". One doesn't really install packages with Porteus, they add packages as modules, usually using the USM GUI.
Merlin wrote:I am using porteus kde x86_64. There's nothing 'ld' command, I am create bootable usb with command 'cp -rf /home/myuser/porteus-extract/* /mnt/sdb1'

/mnt/sdb1 is usb drive directory, any problem with create bootable usb from above methods?
It's not the method we normally see with Porteus installs. I think Blaze's approach works better.
Blaze wrote:If you running in Porteus, open terminal and type

Code: Select all

su
toor
mloop /path-to/Porteus.iso
cp -a /mnt/loop/* /mnt/sdb1/
sh +x Porteus-installer-for-Linux.com
As does this one.
brokenman - https://forum.porteus.org/viewtopic.php?f=81&t=4632&p=33638#p33604 wrote: Create one single FAT32 partition on the USB
Put all the files from the ISO onto the USB stick
Open a root terminal and change into the boot folder on the USB stick
Run the Porteus-installer-for-Linux.com

From a standard porteus install (and assuming your USB partition is at sdb1)

Code: Select all

mloop /path/to/my/porteus.iso
cp -a /mnt/loop/* /mnt/sdb1
sync
cd /mnt/sdb1/boot
./Porteus-installer-for-Linux.com
Ed

donald
Full of knowledge
Full of knowledge
Posts: 2063
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: command 'ld' utils not found?

Post#8 by donald » 26 Apr 2017, 05:36

Merlin wrote:Here my result from terminal

Code: Select all

guest@porteus:~$ whereis ld
ld:
guest@porteus:~$ ls /usr/bin/ld
/bin/ls: cannot access '/usr/bin/ld': No such file or directory
guest@porteus:~$ which ld
which: no ld in (/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts)
It looks so strange? :%)
Hi Merlin
download and activate the 05-devel.xzm -- the ld command is in there.
http://ftp.nluug.nl/os/Linux/distr/port ... -devel.xzm

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: command 'ld' utils not found?

Post#9 by Bogomips » 26 Apr 2017, 12:09

donald wrote: download and activate the 05-devel.xzm -- the ld command is in there.
That's what I thought at first, but then for good measure checked existing system, and already there. :)
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: command 'ld' utils not found?

Post#10 by Blaze » 26 Apr 2017, 16:33

Merlin wrote:I am using another distribution. Are step-by-step above it can do it?
Something like this:
1) Open terminal and login as root
2) Find your USB flash drive

Code: Select all

df -h
For example it's /dev/sdb1

3) Unmount your USB stick

Code: Select all

umount /dev/sdb1
mkfs.ext2 -F -L "Porteus" /dev/sdc1
4) Answer on this question y and hit Enter

Code: Select all

/dev/sdb1 contains a ntfs file system
Proceed anyway? (y,n)
5) Mount your USB stick

Code: Select all

mount -t ext2 /dev/sdb1
6) Download and place Porteus ISO file to /home/guest/Downloads/
In example below Porteus-MATE-v3.2-x86_64.iso and /home/guest/Downloads/ can have another name and path.

Code: Select all

mkdir /media/porteus
mount -t iso9660 -o loop /home/guest/Downloads/Porteus-MATE-v3.2-x86_64.iso /media/porteus
cp -a /media/porteus/* /mnt/sdb1/
umount /media/porteus
rmdir /media/porteus
cd /mnt/sdb1/boot/
./Porteus-installer-for-Linux.com
# or sh +x Porteus-installer-for-Linux.com
7. Type ok and hit Enter.
8. Done.
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Post Reply