LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   make giving errors while installing atk-2.12.0 in non standard directory (https://www.linuxquestions.org/questions/linux-software-2/make-giving-errors-while-installing-atk-2-12-0-in-non-standard-directory-4175516201/)

shivam543 08-24-2014 09:31 AM

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.

weibullguy 08-24-2014 10:40 AM

Quote:

Originally Posted by shivam543 (Post 5226383)
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.

shivam543 08-24-2014 11:02 AM

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)

weibullguy 08-24-2014 11:41 AM

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.


All times are GMT -5. The time now is 08:05 PM.