LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-04-2011, 06:41 PM   #1
deesar
LQ Newbie
 
Registered: Oct 2011
Location: USA
Posts: 5

Rep: Reputation: Disabled
Question Help w install, makefile on linux


Hi, I am an absolute newbie at linux. I am trying to install something using a makefile that looks like this
======
include Options

all:
cd $(HERE)/UA ; make
cd $(HERE)/Misc ; make
cd $(HERE)/EE ; make

Linux /bin/rm -f Options
/bin/ln -s OptionsLinux Options
/bin/rm -f SystemChoice.h
/bin/ln -s SystemLinux.h SystemChoice.h
/bin/rm -f UA/cmisc.o
cd $(HERE)/UA ; make
cd $(HERE)/Misc ; make
cd $(HERE)/EE ; make

I get the following error msg
when I do Sudo make linux
sudo make linux
/bin/rm -f Options
/bin/ln -s OptionsLinux Options
/bin/rm -f SystemChoice.h
/bin/ln -s SystemLinux.h SystemChoice.h
/bin/rm -f UA/cmisc.o
cd /UA ; make
cd: 1: can't cd to /UA
make[1]: Entering directory `/usr/local/src/makee_5.2.4-sep08'
cd /usr/local/src/makee_5.2.4-sep08/UA ; make
make[2]: Entering directory `/usr/local/src/makee_5.2.4-sep08/UA'


what could I be doing differently.
TIA
 
Old 11-04-2011, 08:07 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Since it says it can't cd to UA, always make sure it exists, and echo $HERE to make sure the path is correct. Also, I recommend you just CD to $HERE, instead of using $() to avoid confusion with your make file.

Cheers,

Josh
 
  


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
Is it mandatory to have the name of the makefile as 'Makefile' for kernal module comp narender.d Linux - Kernel 3 05-29-2009 07:26 AM
How to install from source when there is no Configure/Makefile? linus72 Slackware 25 03-16-2009 01:14 PM
How do i install using a makefile? neolithic_psyche Fedora 1 09-15-2007 05:09 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 04:57 AM


All times are GMT -5. The time now is 11:03 AM.

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