dmidecode installation problem

Today I had to check RAM info on solaris 10 system. I know that there is 4 GB, 2 modules , but I really needed more details like exact model, frequency and so on
I downloaded several versions of dmidecode, but non of them worked.
At first I found that there is no gcc in the system, well I installed it
then I tried dmidecode 1.8. make and make install didn't work. I was getting 'gcc no input file ' error
same with 1.9
2.10 and 2.9 came with different errors.
I was getting 'error at line 32, unexpected end of line'
I attached Makefile
line 31-35 are:

INSTALL         := install
INSTALL_DATA    := $(INSTALL) -m 644
INSTALL_DIR     := $(INSTALL) -m 755 -d
INSTALL_PROGRAM := $(INSTALL) -m 755
RM              := rm -f

I would really appreciate help

all versions of dmidecode worked fine on opensuse 11.2

Get the memconf perl script from here. Easy to use.
UNIX utilities

Does it report RAM frequency?

You can try to run it with the available options and see. Im not too sure :o

A developer or full Solaris 10 install has gcc already installed in /usr/sfw/bin.

Anyway, you do not need to compile or even use dmidecode as Solaris provides the smbios command that does pretty much the same.

eg:

$ smbios -t SMB_TYPE_MEMDEVICE 
ID    SIZE TYPE
20    82   SMB_TYPE_MEMDEVICE (memory device)

  Location Tag: DIMM0

  Physical Memory Array: 18
  Memory Error Data: Not Supported
  Total Width: 64 bits
  Data Width: 64 bits
  Size: 1073741824 bytes
  Form Factor: 9 (DIMM)
  Set: None
  Memory Type: 19 (DDR2)
  Flags: 0x80
	SMB_MDF_SYNC (synchronous)
  Speed: 1ns
  Device Locator: DIMM0
  Bank Locator: BANK0
...

How could he ?
Unlike dmidecode, lshw is Linux dependant so won't compile/run on Solaris.