LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2003, 12:37 PM   #1
winky
LQ Newbie
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo (THE best)
Posts: 5

Rep: Reputation: 0
Question Log errors from 'make' command, how do i?


Hi all,
Due to being on my summer holidays and being bored out of my brain i have decided to install gentoo due to the recommendations of its portage/packaging system ('emerge'), to find it is a splendid OS. Anyway, because it doesn't seem to work with the binaries that Alcatel provide i am trying to compile the mgmt.o module for the Alcatel SpeedTouch USB ADSL modem, however i am getting errors. But...i can't see the errors because they just whizz by me on the screen, i have installed all of the software it needed, like sarlib etc. What i would like tto do is find a way to be able to read all of the output including errors that is given when i call 'make'.

Kind Regards
Mark Rawson
 
Old 08-18-2003, 12:59 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,854

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
You can redirect the error messages to a text file with:

make 2> make.errors.txt
 
Old 08-18-2003, 04:21 PM   #3
oni0n56
Member
 
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189

Rep: Reputation: 30
im not sure if this will work with this but if you type | more it gives them screen by screen or something... i think
 
Old 08-18-2003, 06:35 PM   #4
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 30
you could do either of the above suggestions [although I would suggest less rather than more - it enables you to scroll back]:
so
make | less
or
make > dummy-file
it depends whether you want to view the errors once or save them to refer to them. If you want to just see them once, then do the first, it just shows the output screen by screen. If, on the other hand, you want to refer to the errors later, redirect the ouput to a text file.
 
Old 08-18-2003, 07:09 PM   #5
oni0n56
Member
 
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189

Rep: Reputation: 30
ho_10 i hav a question... do you have to create the file first [the dummy file] or does it do that..?
 
Old 08-20-2003, 09:12 PM   #6
winky
LQ Newbie
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo (THE best)
Posts: 5

Original Poster
Rep: Reputation: 0
You do not have to create the file prior to "command > file.log" although i believe that "command >> file.log" actually appends to an already created file or creats one itself.

Anyone that wants an easy way round that works brilliantly for installing the speedtouch USB modem on thier system download the speedbundle from: http://sourceforge.net/project/showf...?group_id=3581 . It includes all the config files and binaies etc that you need.

P.S. i think when using commands like 'make' you need to include the 2 before > like so: "command 2> file.log" otherwise it just outputs the commands it used to the file.

Kind Regards
Mark Rawson

Last edited by winky; 08-20-2003 at 09:15 PM.
 
Old 08-20-2003, 11:40 PM   #7
oni0n56
Member
 
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189

Rep: Reputation: 30
Thanks mark rawson!! .... so for example when im installing i type ...

$make 2> makeErrors.log

??? and can i do that with any command or only certain types? and also in what runlevels? all.. thatd be cool , like....
$ init 6 2> reboot-MumboJumbo.log
 
Old 08-20-2003, 11:45 PM   #8
winky
LQ Newbie
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo (THE best)
Posts: 5

Original Poster
Rep: Reputation: 0
To my knowledge this can be done with all commands but some may give different unexpected outputs than other. Regarding which runlevels i assume that you will be able to log part of runlevel 6 but not all due to the fact that it terminates all processes.

Kind Regards
Mark Rawson
 
Old 08-20-2003, 11:58 PM   #9
oni0n56
Member
 
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189

Rep: Reputation: 30
yeah goodpoint mark.. but umm... where does it save the log if you cd ../ up all the way to root directory ?? just wondering .. would it have.. no write permissions?..
 
Old 08-21-2003, 12:07 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
try using the command nohup

nohup make &
the output is logged to a file called nohup.out
 
Old 08-21-2003, 12:11 AM   #11
winky
LQ Newbie
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo (THE best)
Posts: 5

Original Poster
Rep: Reputation: 0
the "command 2> file.log" has the same permissions as the user that executed it. So if you had not access to anything except your home directory then you would not be able to log anywhere but your home directory. You can obviously change the path that the file goes e.g. "command 2>/root/randomdir/debug.log
 
Old 08-21-2003, 12:14 AM   #12
oni0n56
Member
 
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189

Rep: Reputation: 30
i see.. thanks a lot guys!! i get it now...
 
Old 08-21-2003, 12:19 AM   #13
winky
LQ Newbie
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo (THE best)
Posts: 5

Original Poster
Rep: Reputation: 0
Hmm.....wasn't i the one supposed to be doing the understanding as i asked the first question? lol.

Kind Regards
Mark Rawson
 
Old 08-21-2003, 11:31 AM   #14
oni0n56
Member
 
Registered: Aug 2003
Location: Hollywood, California
Distribution: Linux Mandrake
Posts: 189

Rep: Reputation: 30
lol! ... who says we cant learn too? dont be a sponge and soak up the knowledge for yourself :-D
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make command gives errors whizz Linux - Newbie 4 04-02-2005 11:14 AM
The MAKE command SuSE 9.2 gives errors jasone SUSE / openSUSE 2 04-01-2005 08:15 AM
command: make errors alltime Mandriva 0 01-26-2005 02:31 PM
which command can make me see the initiation log?? ReiserFS Slackware 6 12-17-2004 10:10 AM
Using the 'make' command consistently returns errors Baryonic Being Linux - Software 4 03-24-2004 01:02 PM


All times are GMT -5. The time now is 10:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration