[SOLVED] Why can I see llvm-config with "which" but not "./configure"?
Linux - NewbieThis 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 and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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 clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why can I see llvm-config with "which" but not "./configure"?
when using
./configure --with-llvm=/usr/bin --with-gsl=/usr/bin --prefix=/usr/local
I get the error message
checking for perl module Text::Balanced... ok
checking for perl module Digest::MD5... ok
checking for llvm-config... no-llvm-config
configure: error: could not find llvm-config
When I
which llvm-config
I get
/usr/bin/llvm-config
QUESTION:
Why can I see llvm-config with which but not ./configure?
./configure is looking for development libraries which appear to be missing from your install.
Most of the time it is looking for include files. Some of the time it actually attempts to compile a small file that uses the include AND links to a specific function. If either compile or link fail, you get the missing message.
but i have to ask ...
WHY are you passing DEFAULT values to configure ?
the DEFAULT install is almost always "/usr/local"
the DEFAULT bin search path is "/usr/bin"
it is normally a VERY!!! good idea to read the output of
no the error is informing you that something is missing
"configure" uses the autotools m4 macros and the package config files "/usr/lib64/pkgconfig/"
and uses the presence of the header files in /usr/include
install the devel rpm's(llvm-devel.rpm) or dev deb's or the source for whatever operating system you are using
Should libLVMSupport.a be a link to libLVMSupport.so?
NO -- *.a libs are static and *.so are shared
what is this unknown program you are trying to build on suse , and from where did you get this unknown program ?
Also what version of suse / opensuse is it ?
The program, called Trick, allows you to run simulations. It is from NASA. I am running openSUSE Leap 42.1 inside of VirtualBox version 5.1.6r110634 (Qt5.5.1). My hardware is an HP Pavillion laptop with AMD A8 processor with virtualization enabled.
I modified the configure script file by changing libLLVMSupport.a to libLLVMSupport.so and it reported "configure script successfully completed".
It won't necessarily work.
The problem is the symbols exported by the shared library - they don't have to match what is required. Second, the linking operation itself may be expecting the object files - and shared libraries don't have any. Third, the modules the program calls for may not even be in the shared libraries or have additional operating modes (such as debugging).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.