LinuxQuestions.org
Visit Jeremy's Blog.
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-24-2014, 09:31 AM   #1
shivam543
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Rep: Reputation: Disabled
make giving errors while installing atk-2.12.0 in non standard directory


This is the error:-
make all-recursive
make[1]: Entering directory `/home/user/sklinux/extract/atk-2.12.0'
Making all in atk
make[2]: Entering directory `/home/user/sklinux/extract/atk-2.12.0/atk'
GEN stamp-atkmarshal.h
/bin/sh: glib-genmarshal: command not found
make[2]: *** [stamp-atkmarshal.h] Error 127
make[2]: Leaving directory `/home/user/sklinux/extract/atk-2.12.0/atk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/sklinux/extract/atk-2.12.0'
make: *** [all] Error 2

I wanted to install software but I did not have root password
After searching a lot I found that I can install softwares in a different place than default
The software which I wanted to install required gtk+ .
gtk+ required glib and atk-2.12.0 and other softwares
I installed glib in /home/user/sklinux/linux by compiling from source and using make and make install
Then I ran ./configure (in atk's folder) with --prefix=/home/user/sklinux/linux
but it gave error that glib is not installed and that if it is installed specify the directory of some file in by PKG_CONFIG_PATH variable
finally it gave another error
then finally this command did it successfully

./configure --prefix=/home/user/sklinux/linux/ PKG_CONFIG_PATH=/home/user/sklinux/linux/lib/pkgconfig LD_LIBRARY_PATH=/home/user/sklinux/linux/lib/

I understand that glib-genmarshal is in /home/user/sklinux/linux/bin and not in /bin/sh which is the cause of error.

How do i tell the same to my computer??

Please help me as fast as possible.
 
Old 08-24-2014, 10:40 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by shivam543 View Post
I understand that glib-genmarshal is in /home/user/sklinux/linux/bin and not in /bin/sh which is the cause of error.
Not correct. /bin/sh isn't a directory.

You need to make sure /home/user/sklinux/linux/bin is in your PATH.
Code:
export PATH=/home/user/sklinux/linux/bin:$PATH
Prepend it, so the glib you have installed locally is picked up before the system version.
 
Old 08-24-2014, 11:02 AM   #3
shivam543
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you very much.
It solved the problem.
Does this command look for binaries in local directory before going to /bin?
and was it looking in /bin(not in /bin/sh)

Last edited by shivam543; 08-24-2014 at 11:24 AM.
 
Old 08-24-2014, 11:41 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Here's a discussion of the PATH env variable --> http://www.linfo.org/path_env_var.html. Lot's more free information available on the internet. Good luck.
 
  


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
Code to make Bar Graph keeps giving errors bananagram Linux - Newbie 1 02-04-2014 10:06 PM
Glibc giving Errors on Make Check in LFS 7.1 xerofoify Linux From Scratch 3 08-21-2012 11:02 AM
'make' giving errors... bharathp Linux - Hardware 9 11-21-2009 11:12 PM
Glibc-2.5.1 is giving errors installing on Live cd with LFS 6.3 version shanth Linux - Newbie 2 09-25-2008 12:12 AM
gnome make errors after upgrading atk ciotog Linux - Software 1 08-01-2006 11:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:51 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
Open Source Consulting | Domain Registration