ubuntu modem install (attempt) get:checking for asm/mach-default...** error
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ubuntu modem install (attempt) get:checking for asm/mach-default...** error
every time I try to install the modem software I get:
laprakr@laprakr-desktop:~/Desktop/pctel-0.9.7-9-rht-10$ sudo ./setup
checking for running kernel version...2.6.28
checking for ptserial...ptserial-2.6.c
checking for gcc...4.3.3
checking for kernel gcc version...4.3.3
searching for kernel includes...found at /lib/modules/2.6.28-14-generic/build/include
checking for autoconf.h.../lib/modules/2.6.28-14-generic/build/include/linux/autoconf.h checking for asm/mach-default...** error
include/asm/mach-default directory could not be found
you probably need to configure your kernel, please read the FAQ
about no include/asm/mach-default directory.
** compilation error
please read the FAQ about reporting compilation problems
and report this problem. A transcript of the build process
has been saved in src/make.log. When reporting problems to
the development team, please send us this file.
I boldfaced the problem area.
make log says:
make: *** No targets specified and no makefile found. Stop.
any help you could provide would be greatly appreciated!
Hi Neonwv
I am about as green as it gets when working with Linux but I have managed to get dialup working on Etch and Ubuntu so I will help as much as I can until someone with more knowledge joins in.
first what kind of modem do you have and where did you get the driver?
Great attitude, Raybo and congrats on your modem success!
Also, it looks from the name of the driver source directory that the OP has a driver intended for a RedHat system. I'm not too sure this is going to be an easy installation, if that's the case. It's looking for (as best as I can tell) a symlink which does not exist on the OP's system.
I have two PCtel modems here myself, and I never did get either of them to work with Linux, unfortunately.
To help Raybo & I, please give us the output of the following command. You can either copy & paste the whole thing (good), OR just the chunk about the modem (better). Please wrap [code][//code] tags around the stuff you paste in for us (just one slash in the closing [//code] tag):
So, we need to see the modem info from this command, executed in a console:
shell$ sudo lspci -vv
Thanks,
Sasha
Last edited by GrapefruiTgirl; 08-17-2009 at 10:23 PM.
OK So I did some Googling, and it appears I was wrong regarding the package you have being a RedHat package (I'm not 100% but let's hope I'm wrong) so we'll assume the package will work for your Ubuntu system..
To my limited Ubuntu knowledge, Ubuntu does not come with all of the pieces needed in order to build source code. So, you need to use your package manager to make sure you have ALL of the pieces, such as kernel-source-archive, kernel headers, and whatever else might be needed. An Ubuntu user will have to advise you as to how exactly to get this stuff using your package manager, because I don't use Ubuntu so my advice would be bad
After having installed the stuff mentioned, try to compile the driver again. At this point, the error you got should be resolved. However, it's not to say something else will be messed up, but if so, just post back for us with what happened.
Also: I should mention again that even if the driver DOES build, and installs properly, that still isn't the proper way to install something on a Linux with a package manager, so hopefully the same person who can help you get your kernel sources and all, can also advise how you can make a proper package of your driver.
PS - On my 32 bit machine, the 'asm' symlink is in <kernel-source>/include/asm and points to the asm-x86 folder in the same directory.
Best of success,
Sasha
Last edited by GrapefruiTgirl; 08-18-2009 at 05:18 PM.
I dont know if this will help but what I did was go to linuxant.com, grabbed a copy of scan modem (there will be a link on their web page) find out what driver you need, and go from there. That worked for me but your modem is different so I dont know if this will help.
did some research too I think you got the right driver, just need to do as GrapefruiTgirl suggested and install the extra kernel headers/sources for your kernel and try again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.