Welcome, Guest. Please login or register.
Did you miss your activation email?
Monday 25 November 2024, 02:40:42 am

Login with username, password and session length

The Latest Endian Firewall is now available for download HERE
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  How to install 'make' and compile software?
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: How to install 'make' and compile software?  (Read 20961 times)
andyp
Jr. Member
*
Offline Offline

Posts: 9


« on: Monday 23 April 2012, 10:20:44 pm »

Hi all,

I'm trying to compile the software for my ADSL PCI card (see below link) but am experiencing problems because GNU make is not installed by default.

sourceforge.net/projects/openadsl/

Please can someone tell me what I need to do to install a compiler?

Thanks guys,
Andy
Logged
andyp
Jr. Member
*
Offline Offline

Posts: 9


« Reply #1 on: Thursday 26 April 2012, 11:56:24 pm »


Any ideas?  Is it possible to compile your own driver?  Maybe it can be done via the smart package manager?

Cheers.
Logged
andyp
Jr. Member
*
Offline Offline

Posts: 9


« Reply #2 on: Thursday 26 April 2012, 11:59:35 pm »

And I forgot to say, I'm using version 2.5.1.
Logged
andyp
Jr. Member
*
Offline Offline

Posts: 9


« Reply #3 on: Friday 27 April 2012, 01:30:41 am »

Hi,

Looks like I had a problem with my internet connection and so smart wasn't working.  I have now successfully installed the following packages via smart:

 - binutils, glibc-kernheaders, glibc-headers and make.

However, I tried to install gcc as well but received the following error:

Code:
Computing transaction...                                                                 
              error: Can't install gcc-1:3.4.6-10.endian8@i586: no package provides glibc-devel >= 2.2.90-12

Is this something I need worry about?

Also, I'm still unable to compile my driver:

Code:
root@efw-1335360852:~/solos/solos-pci-0.11 # make clean
rm -f *.o *.ko *.mod.c .*.cmd
rm -rf .tmp_versions
rm -f Module.symvers
root@efw-1335360852:~/solos/solos-pci-0.11 # make
make -C /lib/modules/2.6.32.43-57.e43.i586/build M=/root/solos/solos-pci-0.11 modules
make: *** /lib/modules/2.6.32.43-57.e43.i586/build: No such file or directory.  Stop.
make: *** [default] Error 2

I would be grateful if someone could provide me with some insight or help with any of the above.

Cheers.
Logged
martman22
Full Member
***
Offline Offline

Posts: 27


« Reply #4 on: Friday 27 April 2012, 11:02:56 pm »

A number of the development packages are not available through smart. You can install the needed rpms from a Centos 4.7 CD or DVD ( I don't think any repositories are still up for that version). You will need to use the "--nodep" option for glibc-devel though. You can also get the rpms from here:
h--p:/pkgs.org.
Logged
andyp
Jr. Member
*
Offline Offline

Posts: 9


« Reply #5 on: Thursday 03 May 2012, 01:23:23 am »

Martman22,

Thanks for your reply.  I was not able to get glibc-devel via pkgs.org.  I think because the website itself uses the Centos mirrors.  Centos have moved 4.x to the vault -  I had to get it from here:

vault.centos.org/4.7/os/i386/

I installed it with:

Code:
rpm -i --nodeps glibc-devel-2.3.4-2.41.i386.rpm

I was then able to install gcc via smart:

Code:
smart install gcc

This installed successfully and it also automatically installed cpp.

I have rebooted and made sure everything is up-to-date with....

Code:
smart upgrade
efw-upgrade

... and everything seems fine.

However, I am still receiving the following error when I try to run 'make clean':

Code:
root@efw-1335960976:~/solos-driver/solos-pci-1.03 # make clean
make -C /lib/modules/2.6.32.43-57.e43.i586/build M=/root/solos-driver/solos-pci-1.03 clean
make: *** /lib/modules/2.6.32.43-57.e43.i586/build: No such file or directory.  Stop.
make: *** [clean] Error 2

What's up with this?  Why does '/lib/modules/2.6.32.43-57.e43.i586/build' not exist?

Code:
root@efw-1335960976:~/solos-driver/solos-pci-1.03 # ls -la /lib/modules/2.6.32.43-57.e43.i586/build
lrwxrwxrwx  1 root root 46 May  2 13:12 /lib/modules/2.6.32.43-57.e43.i586/build -> ../../../usr/src/kernels/2.6.32.43-57.e43.i586

Please help!

Many thanks,
Andy
Logged
andyp
Jr. Member
*
Offline Offline

Posts: 9


« Reply #6 on: Thursday 03 May 2012, 02:41:56 am »

Also, every time I reboot and run 'smart upgrade' I get the following:

Code:
root@efw-1335960976:~ # smart upgrade
Loading cache...
Updating cache...                                                           ################################################################################# [100%]

Computing transaction...

Upgrading packages (1):
  kernel-headers-3:2.6.32.43-57.e43@i686

Downgrading packages (1):
  kernel-headers-3:2.6.32.43-57.e43@i686

734.0kB of package files are needed. 131.1kB will be used.

Confirm changes? (Y/n):

Why is it trying to upgrade AND downgrade the same package?

Cheers,
Andy
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.125 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com