Easy to Compile in Mint?

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
bsmither
Level 2
Level 2
Posts: 54
Joined: Tue Jun 21, 2016 10:20 pm

Easy to Compile in Mint?

Post by bsmither »

I have an interest in getting the Hiawatha web server installed on my Tricia.

I have found a Youtube video that goes through the steps of getting something that works from the source tarball. The video is using Ubuntu Bionic Beaver.

My question is:
Is Tricia (fresh out of the box) ready to compile, make (whatever) from source using those instructions?

More generally, is Tricia ready to (compile, make, whatever) from source for anything whatever?

(If you are curious, perhaps search Youtube for compile hiawatha ubuntu 18.04.)
Tricia - Cinnamon

User avatar
Racer-X-
Level 3
Level 3
Posts: 129
Joined: Sun Jan 19, 2020 2:55 pm

Re: Easy to Compile in Mint?

Post by Racer-X- »

Mint Tricia is based on Ubuntu 18.04. The steps should be the same.

Generally, to build anything from source, you need to have the "build-essential" package installed. You can install that from the software manager, or do sudo apt install build-essential from the command line. If it's already installed, that command will tell you that it's already installed and already the latest version. That won't hurt anything, it just confirms that the package is installed and up to date. If the "build-essential" package is not yet installed, the apt install command will install several dependencies in addition to the "build-essential" package.

bsmither
Level 2
Level 2
Posts: 54
Joined: Tue Jun 21, 2016 10:20 pm

Re: Easy to Compile in Mint?

Post by bsmither »

Well, of course, something went wrong.

I asked:
"Is Tricia (fresh out of the box) ready to compile, make (whatever) from source?"

And I read the short version of your reply is: no.

To be honest -- no one would expect Mint to be a developers dream machine out of the box. I understand Mint's raison d'être is for the ex-Windows, Joe Sixpack user.

I did install the 'build-essentials'.

According to the video, I did this:

Code: Select all

sudo apt install -y dpkg-dev net-tools cmake libc6-dev libssl-dev debhelper fakeroot libxml2-dev libxslt1-dev
which is most of what the video showed -- I didn't include git nano gedit in the above list.

This is the result of:

Code: Select all

cmake ..
-- The C compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.9") 
-- Found LibXslt: /usr/lib/x86_64-linux-gnu/libxslt.so (found version "1.1.29") 
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) 
-- Looking for crypt.h
-- Looking for crypt.h - found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for include files sys/types.h, netinet/in.h
-- Looking for include files sys/types.h, netinet/in.h - found
-- Looking for include files sys/types.h, netinet/tcp.h
-- Looking for include files sys/types.h, netinet/tcp.h - found
-- Looking for rpcsvc/crypt.h
-- Looking for rpcsvc/crypt.h - not found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for unsetenv
-- Looking for unsetenv - found
-- Looking for clearenv
-- Looking for clearenv - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strnstr
-- Looking for strnstr - not found
-- Looking for strcasestr
-- Looking for strcasestr - found
-- Looking for strncasestr
-- Looking for strncasestr - not found
-- Looking for crypt_r in crypt
-- Looking for crypt_r in crypt - found
-- Looking for crypt in crypt
-- Looking for crypt in crypt - found
-- Looking for gzdopen in ZLIB_LIBRARY-NOTFOUND
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ZLIB_LIBRARY
    linked by target "cmTC_b7016" in directory /home/brian/hiawatha-10.10/build/CMakeFiles/CMakeTmp

CMake Error at /usr/share/cmake-3.10/Modules/CheckLibraryExists.cmake:54 (try_compile):
  Failed to configure test project build system.
Call Stack (most recent call first):
  CMakeLists.txt:68 (check_library_exists)


-- Configuring incomplete, errors occurred!
See also "/home/brian/hiawatha-10.10/build/CMakeFiles/CMakeOutput.log".
See also "/home/brian/hiawatha-10.10/build/CMakeFiles/CMakeError.log".
Where do I get the ZLIB_LIBRARY?
Last edited by bsmither on Thu Feb 20, 2020 1:54 am, edited 1 time in total.
Tricia - Cinnamon

User avatar
smurphos
Level 15
Level 15
Posts: 5956
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Easy to Compile in Mint?

Post by smurphos »

bsmither wrote:
Thu Feb 20, 2020 12:32 am
Where do I get the ZLIB_LIBRARY?
Try

Code: Select all

apt install zlib1g-dev
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

bsmither
Level 2
Level 2
Posts: 54
Joined: Tue Jun 21, 2016 10:20 pm

Re: Easy to Compile in Mint?

Post by bsmither »

Thank you!

I got further...

Code: Select all

[ 81%] Linking C executable hiawatha
/usr/bin/ld: CMakeFiles/hiawatha.dir/src/libfs.c.o: undefined reference to symbol 'gzwrite'
//lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/hiawatha.dir/build.make:827: recipe for target 'hiawatha' failed
make[2]: *** [hiawatha] Error 1
CMakeFiles/Makefile2:69: recipe for target 'CMakeFiles/hiawatha.dir/all' failed
make[1]: *** [CMakeFiles/hiawatha.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Tricia - Cinnamon

User avatar
smurphos
Level 15
Level 15
Posts: 5956
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Easy to Compile in Mint?

Post by smurphos »

I'd suggest trying the official build instructions rather than a video - https://www.hiawatha-webserver.org/howt ... stallation

A browse of their forums may be helpful - unfortunately they are archived so it doesn't look like you can post new questions - https://www.hiawatha-webserver.org/forum

Finally the prepacked deb file from here - https://files.tuxhelp.org/hiawatha/ looks like it will install fine on Mint 19.x
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

bsmither
Level 2
Level 2
Posts: 54
Joined: Tue Jun 21, 2016 10:20 pm

Re: Easy to Compile in Mint?

Post by bsmither »

Thank you for finding that tuxhelp page!

I'll give it a try.
Tricia - Cinnamon

Post Reply

Return to “Software & Applications”