Compiling with gcc and g++


Recommended Posts

I have recently upgraded from unRAID v5 to v6.  I was able to compile Mediainfo from source on v5.  I had the gcc and g++ compilers installed.  I have installed gcc and g++ and make 64bit packages from here: http://mirrors.slackware.com/slackware/slackware64-14.1/slackware64/d/

 

When I run the compile script "CLI_Compile.sh" I get the following:

 

checking build system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/mnt/APPS/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library':
configure: error: C compiler cannot create executables
See `config.log' for more details
Problem while configuring ZenLib

 

What's missing from v5 that I need in v6?

Link to comment

I figured it out by looking at the "config.log".  Every time it had an error, I would need to download a package with a library or function which got me a little further each time.  In V5 the gcc package through unMenu installed: gcc, make, binutils, glibc, and kernel-headers.  That was the difference between V5 and V6 ( I am not running unMENU on V6 yet).

 

I ended up with these packages in my /boot/extra folder:

binutils-2.23.52.0.1-x86_64-2.txz

gcc-4.8.2-x86_64-1.txz

gcc-g++-4.8.2-x86_64-1.txz

git-1.8.4-x86_64-1.txz

glibc-2.17-x86_64-7.txz

kernel-headers-3.10.17-x86-3.txz

libmpc-0.8.2-x86_64-2.txz

make-3.82-x86_64-4.txz

 

The packages were downloaded from: http://mirrors.slackware.com/slackware/slackware64-14.1/slackware64/

 

Now I can compile MediaInfo from source and use it in my YAMJ scans.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.