News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Installation Error

Started by lehe, January 24, 2009, 04:17:46 AM

Previous topic - Next topic

lehe

HI,
I am installing the latest source code on Ubuntu 8.10 following the instructions on http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu. When I typed sudo dpkg *.deb, I got the following error. Please tell me how to fix it. Thanks!

dpkg: error processing codeblocks_8.02svn5382_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
(Reading database ... 106883 files and directories currently installed.)
Preparing to replace codeblocks-common 8.02svn5382 (using codeblocks-common_8.02svn5382_all.deb) ...
Unpacking replacement codeblocks-common ...
dpkg: error processing codeblocks-contrib_8.02svn5382_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
Preparing to replace codeblocks-contrib-common 8.02svn5382 (using codeblocks-contrib-common_8.02svn5382_all.deb) ...
Unpacking replacement codeblocks-contrib-common ...
dpkg: error processing codeblocks-dbg_8.02svn5382_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
dpkg: error processing codeblocks-dev_8.02svn5382_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
Preparing to replace codeblocks-headers 8.02svn5382 (using codeblocks-headers_8.02svn5382_all.deb) ...
Unpacking replacement codeblocks-headers ...
dpkg: error processing libcodeblocks0_8.02svn5382_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
dpkg: error processing libwxsmithlib0_8.02svn5382_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
dpkg: error processing libwxsmithlib0-dev_8.02svn5382_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
dpkg: error processing wxsmith-dev_8.02svn5382_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
Preparing to replace wxsmith-headers 8.02svn5382 (using wxsmith-headers_8.02svn5382_all.deb) ...
Unpacking replacement wxsmith-headers ...
Setting up codeblocks-common (8.02svn5382) ...

Setting up codeblocks-contrib-common (8.02svn5382) ...
Setting up codeblocks-headers (8.02svn5382) ...
Setting up wxsmith-headers (8.02svn5382) ...
Processing triggers for man-db ...
Errors were encountered while processing:
codeblocks_8.02svn5382_amd64.deb
codeblocks-contrib_8.02svn5382_amd64.deb
codeblocks-dbg_8.02svn5382_amd64.deb
codeblocks-dev_8.02svn5382_amd64.deb
libcodeblocks0_8.02svn5382_amd64.deb
libwxsmithlib0_8.02svn5382_amd64.deb
libwxsmithlib0-dev_8.02svn5382_amd64.deb
wxsmith-dev_8.02svn5382_amd64.deb

Jenna

You try to install 64-packages on a 32-bit system, that can not work.

Download either the zipped i386-packages (they either have i386 in the name or at least not amd64), or use more recently nightly build from a repo.

You may want to have a lookin the actual nightlies thread in http://forums.next.codeblocks.org/index.php/board,20.0.html or use mine (see signature), it works also for Ubuntu 8.10.

lehe

Thank you, Jens.
How to check if my system is 32bit or 64bit? Is it one of the following

1. >$ uname -ar
Linux lehe 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux

2. >$ file /usr/bin/file
/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped

3. >$ cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family   : 15
model      : 36
model name   : AMD Turion(tm) 64 Mobile Technology ML-30
stepping   : 2
cpu MHz      : 1600.050
cache size   : 1024 KB
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 1
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni lahf_lm
bogomips   : 3200.10
clflush size   : 64
power management: ts fid vid ttp tm stc


Jenna

If your CPU is 64-bit, it does not mean, that you have a 64-bit system.

You have to install your whole system from a 64-bit repo.

Some programs and/or libraries (like wine) might still run in 32-bit, but they use 32-bit compatibility libraries.

By the way you should know , whether you have installed a 32 or 64-bit system.

Amd64 does not mean you have an AMD-cpu, it's just a name, not the vendor.

On my core-2-duo laptop:

Quoteuname -a
Linux debian-inspiron 2.6.26 #1 SMP PREEMPT Sun Jan 11 09:55:42 CET 2009 x86_64 GNU/Linux

That's means the kernel is 64-bit and the rest of the system should be also.