roysamba 0 Newbie Poster

Hello friends. I am a new user of Ubuntu 9.04 version and I have to build a system telephonie over Ip by using asterisk. My probleme is the following
I Have successly installed GCC, Libnewt, Bison, libpri........ but when I' am trying to install dahdi-linux after depackaging there is an error like this
----------------------------------------------------------------------------------------------
]roysamba@roysamba-laptop:~/Bureau/Asterisk 1.6$ cd dahdi-linux-
roysamba@roysamba-laptop:~/Bureau/Asterisk 1.6/dahdi-linux-$ make
make -C drivers/dahdi/firmware firmware-loaders
make[1]: entrant dans le répertoire « /home/roysamba/Bureau/Asterisk 1.6/dahdi-linux- »
make[1]: quittant le répertoire « /home/roysamba/Bureau/Asterisk 1.6/dahdi-linux- »
make -C /lib/modules/2.6.28-15-generic/build SUBDIRS=/home/roysamba/Bureau/Asterisk 1.6/dahdi-linux- DAHDI_INCLUDE=/home/roysamba/Bureau/Asterisk 1.6/dahdi-linux- DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.28-15-generic »
make[1]: *** Pas de règle pour fabriquer la cible « 1.6/dahdi-linux- ». Arrêt.
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.28-15-generic »
make: *** [modules] Erreur 2
---------------------------------------------------------------------------------------------

So is there someone can hep me?
Thanks a lot

Dani AI

Generated

The build failure reported by matches a very common kernel-module problem: the kernel build system does not handle source paths that contain whitespace. When make is invoked with a SUBDIRS path that has a space, the build system splits that path into separate tokens and the kernel tree reports "no rule to make target" for the broken token. Moving the source out of any directory with spaces (or renaming it) is the simplest fix.

Suggested steps (use exact names relevant to the environment):

mkdir -p ~/src
mv "old path/with spaces" ~/src/asterisk-src
cd ~/src/asterisk-src/dahdi-linux-<version>
make

Also confirm the kernel headers and build toolchain are present and match the running kernel before building. Useful checks/commands:

uname -r
sudo apt-get update
sudo apt-get install build-essential linux-headers-$(uname -r)
ls -ld /lib/modules/$(uname -r)/build

If the build symlink under /lib/modules/$(uname -r) is missing or points to the wrong place, the kernel headers are not correctly installed. After a successful build/install, refresh module dependencies and load the module(s):

sudo make install
sudo depmod -a
sudo modprobe <module_name>

As an alternative to manual compilation, consider using distribution-managed DAHDI packages or DKMS so modules rebuild automatically after kernel upgrades. If problems persist after removing spaces and confirming headers, re-run the build with a clean tree (make clean) and capture the full make output and ls -ld results for the kernel build link for further diagnosis.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.