Page 1 of 1

command 'ld' utils not found?

Posted: 25 Apr 2017, 13:33
by Merlin
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

Re: command 'ld' utils not found?

Posted: 25 Apr 2017, 15:26
by Bogomips
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. :)

Re: command 'ld' utils not found?

Posted: 25 Apr 2017, 17:01
by Merlin
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?

Re: command 'ld' utils not found?

Posted: 25 Apr 2017, 17:55
by Merlin
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? :%)

Re: command 'ld' utils not found?

Posted: 25 Apr 2017, 19:14
by Blaze
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/

Re: command 'ld' utils not found?

Posted: 25 Apr 2017, 19:34
by Merlin
I am using another distribution. Are step-by-step above it can do it?

Re: command 'ld' utils not found?

Posted: 26 Apr 2017, 04:04
by Ed_P
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

Re: command 'ld' utils not found?

Posted: 26 Apr 2017, 05:36
by donald
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

Re: command 'ld' utils not found?

Posted: 26 Apr 2017, 12:09
by Bogomips
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. :)

Re: command 'ld' utils not found?

Posted: 26 Apr 2017, 16:33
by Blaze
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.