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

asked 2011-02-18 02:12:00 -0600

janson071 gravatar image

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

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 (http://ftp.gnu.org/gnu/coreutils/core...) 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~

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2011-02-18 12:06:51 -0600

berendt gravatar image

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/cento...) http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/coreutils-8.4-1.el6.x86_64.rpm.html (http://pkgs.org/centos-6-rhel-6/cento...)

edit flag offensive delete link more

answered 2011-02-21 01:20:02 -0600

janson071 gravatar image

Thanks Christian Berendt, that solved my question.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-02-18 02:12:00 -0600

Seen: 274 times

Last updated: Feb 21 '11