Configure Error Expected An Absolute Directory Name
configure: error: expected an absolute directory name for --prefix From: Andrew Pinski
Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie configure: error: expected an absolute directory name for --prefix: -prefix=/home/jeo User Name Remember Me? 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 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 https://gcc.gnu.org/ml/gcc/2006-05/msg00646.html and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now 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 http://www.linuxquestions.org/questions/linux-newbie-8/configure-error-expected-an-absolute-directory-name-for-prefix-prefix%3D-home-jeo-4175538088/ clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 03-28-2015, 05:42 AM #1 Nownuri LQ Newbie Registered: Mar 2015 Posts: 1 Rep: configure: error: expected an absolute directory name for --prefix: -prefix=/home/jeo I ran a install.sh of some package with the following command. ./install.sh --prefix/home/name/work/i3/ports and an error occurred configure: error: expected an absolute directory name for --prefix: -prefix=/home/name/work/i3/ports I don't understand what the problem is. Could anyone help me please? Nownuri View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by Nownuri 03-28-2015, 06:22 AM #2 millgates Member Contributing Member Registered: Feb 2009 Location: 192.168.x.x Distribut
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us http://stackoverflow.com/questions/9654062/tell-a-configure-script-to-use-a-relative-path-for-datarootdir/9659833 Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Tell a configure script to use a configure error relative path for --datarootdir up vote 5 down vote favorite I have used GNU autoconf to generate a configure script for a program of mine, which I am now trying to cross-compile for Windows. Under Linux, to change the location of the data files I supply --datarootdir=/blah which works fine. Under Windows however, my application's path won't be known until run time (as the user could choose configure error expected to install it anywhere.) Therefore I want to set the data directory to be the current directory, wherever that may be at the time the application is launched. Unfortunately, passing --datarootdir=. doesn't work: configure: error: expected an absolute directory name for --datarootdir: . How do you tell Autoconf/configure that you want a path relative to the current directory at run time? cross-compiling autoconf share|improve this question edited May 24 '12 at 14:19 William Pursell 92.4k21151196 asked Mar 11 '12 at 10:11 Malvineous 5,46133671 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote I think I have found a partial solution for this. It seems --datarootdir is used to control where the files are installed to, so it needs to be an absolute path for the benefit of make install. However it can be overridden during compilation: make datadir="." This way, during compilation the code thinks the $(datadir) is "." but when running make install the files are still placed in the absolute path given to ./configure --datarootdir=... share|improve this answer answered Mar 11 '12 at 12:24 Malvineous 5,46133671 Of course I have since realised that this isn't the best solution either. When