LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Failure to build LabVIEW application on Linux using "Shared library"

Solved!
Go to solution

In order to create a LabVIEW application on linux without an X display, I complied the LabVIEW VI using the Linux Shared Library. I did this by right clicking on Build Specification and selecting New >> Shared Library, and in the Advanced section, checking the box labeled Use embedded version of run-time engine. At the end of the build process, a message came up informing that the build was unsuccessful, with the following message:

    "Error 127 occurred at System Exec: sh: gcc: command not found 

 

    The error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input."

 

I had no compling the LabVIEW VI in the normal fashion, so am confused about what the problem is.

 

0 Kudos
Message 1 of 4
(2,255 Views)

Hi Julian,

 

I'm guessing you are following the directions from this KB: http://digital.ni.com/public.nsf/allkb/5D6EC36DCF43343786257449006919E6.  What version of Labview are you using and what type of Linux distribution are you running?  It looks like the error is reporting that the gcc command was unable to be found on the system. Is the gcc compiler installed on the system?

Justin D
Applications Engineer
National Instruments
http://www.ni.com/support/
0 Kudos
Message 2 of 4
(2,241 Views)

I am using the directions from the link you supplied and using LabVIEW 8.5 on Centos version 2.16.0 (I didn't install the Linux - have no idea about linux really!). Sorry to sound ignorant, but what is a gcc compiler and how would I determine that it is installed on the systems?

 

Thanks,

Julian

0 Kudos
Message 3 of 4
(2,238 Views)
Solution
Accepted by topic author Julian S

Hi Julian,

 

gcc is a C and C++ compiler on Linux.  An easy way to check if it is installed is to open a terminal and type "gcc", if the command is recognized then the package is already installed and the problem must lie elsewhere.  If this distrobution of Linux has a package manager included then it should be displayed in there as well.  If not then it could point to it being not installed or some dependency is missing making it not accessible from the command line.  Here is a link that should hopefully step you through installing gcc with Redhat: http://www.cyberciti.biz/faq/centos-linux-install-gcc-c-c-compiler/ .

Justin D
Applications Engineer
National Instruments
http://www.ni.com/support/
0 Kudos
Message 4 of 4
(2,236 Views)