cp: cannot stat `truncate': No such file or directory

Asked by janson

following this url:
http://wiki.openstack.org/NovaInstall/CentOSNotes;

when I do the command as follows:

---Last but not least you will need truncate which for some reason is not included with Centos 5 coreutils. To install execute following:

wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.9.tar.gz
tar -zxvf coreutils-8.9.tar.gz
cd coreutils-8.9
./configure
make
sudo cp truncate /usr/bin/

It shows an error like this:
[root@localhost coreutils-8.9]# cp truncate /usr/bin/
cp: cannot stat `truncate': No such file or directory

why ? hoping for friendly help~

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Christian Berendt
Solved:
Last query:
Last reply:
Revision history for this message
Best Christian Berendt (berendt) said :
#1

Hmm.. I think it's easier to grep a RPM package from CentOS 6 and to extract the missing binary. I'm using this binary at the moment on a SLES11 SP1 system and it's working fine. /usr/bin/truncate is also not included in the SLES11 coreutils package :(

http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/
http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/coreutils-8.4-1.el6.x86_64.rpm.html

Revision history for this message
janson (janson071) said :
#2

Thanks Christian Berendt, that solved my question.