How to install build-essential?

I want to install build tools on My Cloud NAS,first step apt-get update seems fine.  when I use apt-get upgrade, I got the following error messages:

Preparing to replace dpkg 1.16.9 (using …/dpkg_1.16.15_armhf.deb) …
Unpacking replacement dpkg …
dpkg: error processing /var/cache/apt/archives/dpkg_1.16.15_armhf.deb (–unpack):
 trying to overwrite ‘/etc/logrotate.d/dpkg’, which is also in package wd-nas 02.50.00-110774
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please help me.

You’ll have to rebuild the packages to 64k format

Thank you, but how?

Read this thread

1 Like

Hi Nazar,

I’m still using the old 3.x firmware, your method seem to based on new 4.x firmware. Do I need to upgrade the firmware?

And I still want to build packages using My Cloud itself, is it possible?

Thank you.

It’s for both v3 and v4. You need to choose build methods between 8k=v3 firmwares and 64k=v4 firmwares.

For cross-compile v4, use the 32bit 64k patched toolchain from WD packages, for v3 you need to rebuild the non-64k patched from the WD packages…

If you are still having trouble (and for those landing here on Google), please see my thread on a working method of installing build-essential on WD Firmware v03.04.01-230.