Jump to content
Davemabster

Error when issuing make command

Recommended Posts

Hello,

 

Apologies as I may not be as tech savvy as some here when it comes to Linux, so please forgive if my questions seems trivial. 

 

I am looking for assistance installing FriendOS on ubuntu-18.04.4-live-server-amd64.

 

When I follow the instructions here:

https://github.com/FriendUPCloud/friendup

 

and arrive at this command: make clean setup release install

 

(I do this because install.sh is missing and from my research it seems that is intended as it is depreciated.)

 

I receive this output:


gcc: error: ../libs-ext/openssl/libssl.a: No such file or directory
gcc: error: ../libs-ext/openssl/libcrypto.a: No such file or directory
Makefile:206: recipe for target 'bin/FriendCore' failed
make[1]: *** [bin/FriendCore] Error 1
make[1]: Leaving directory '/home/dave/friendup/core'
Makefile:156: recipe for target 'release' failed
 

Please let me know what logs, info, details, etc I can provide to help you help me with this error.

 

Thanks a lot.

Share this post


Link to post
Share on other sites

Please check Config.defs file and write here your OPENSSL_INTERNAL variable.

Second thing, do you do "make setup" before "make compile" ? It is used to generate 3rd party libraries.

Share this post


Link to post
Share on other sites
Posted (edited)

Hi Powel,

 

I know your do this voluntarily so I want to tell you I really appreciate the assist here.

 

When running make compile I have the following result:

 

gcc: error: ../libs-ext/openssl/libssl.a: No such file or directory
gcc: error: ../libs-ext/openssl/libcrypto.a: No such file or directory
Makefile:206: recipe for target 'bin/FriendCore' failed
make[1]: *** [bin/FriendCore] Error 1
make[1]: Leaving directory '/home/dave/friendup/core'
Makefile:138: recipe for target 'compile' failed
make: *** [compile] Error 2
 

 

It appears it is set to 1

 

 

#
# global path's and variables
#
WEBSOCKETS_THREADS                      =       1
USE_SELECT                                      =       0
NO_VALGRIND                                     =       0
CYGWIN_BUILD                            =       0
DEBUG                                           =       1
PERF_MEAS                                       =       0
USE_SANITIZER                           =       0
USE_MEMCHECK                            =       0
USE_WEBP_LOADER                         =       0
LINK_STDCPP                                     =       0
USE_SSH_THREADS_LIB                     =       1
LINK_LIB_STDCPP                         =       1
GLOBAL_BUILD_DATE                       =       $(shell date +"%Y%m%d_%H%M%S")
OPENSSL_INTERNAL                        =       1
ENABLE_SSL                                      =       1
ENABLE_SSH                                      =       0
BUILD_VERSION                           =       "v1.2.3"
GIT_VERSION                             =       $(shell git describe --abbrev --dirty --always --tags)
LIBXML2_INCLUDE_DIR                     =       /usr/include/libxml2/
LIBXML2_LIB_DIR                         =
LIBWS_INCLUDE_DIR                       =       libs-ext/libwebsockets/build/include/
LIBWS_LIB_DIR                           =       libs-ext/libwebsockets/build/lib/
LIBSSH2_INCLUDE_DIR                     =       libs-ext/libssh2/include/
LIBSSH2_LIB_DIR                         =       libs-ext/libssh2/build/src/
SAMBA_INCLUDE_DIR                       =       /usr/include/samba-4.0/
MUTEX_TIME_LOCK_CHECK           =       0
MUTEX_TIMEOUT_NUMBER_TRIES      =       30
MUTEX_TIMEOUT_TIME                      =       500000
MOD_TIMEOUT                                     =       45
MOD_NUMBER_TRIES                        =       1
GLOBAL_CFLAGS                           =       -DMOD_TIMEOUT=$(MOD_TIMEOUT) -DMOD_NUMBER_TRIES=$(MOD_NUMBER_TRIES) -DMUTEX_TIMEOUT_NUMBER_TRIES=$(MUTEX_TIMEOUT_NUMBER_TRIES) -DFRIENDUP=1 -DMUTEX_TIMEOUT_TIME=$(MUTEX_TIMEOUT_TIME) -D_PO$
GLOBAL_LFLAGS                           =       -lcrypto -lm -lpthread -ldl -lrt -lmagic -lxml2 `mysql_config --libs` -lpng -lz

ifeq ($(ENABLE_SSL),1)
GLOBAL_CFLAGS                           +=      -DENABLE_SSL
endif

ifeq ($(ENABLE_SSH),1)
GLOBAL_CFLAGS                           +=      -DENABLE_SSH
endif

ifeq ($(MUTEX_TIME_LOCK_CHECK),1)
GLOBAL_CFLAGS                           +=      -DMUTEX_TIME_LOCK_CHECK
endif

ifeq ($(USE_SANITIZER),1)
GLOBAL_CFLAGS                           +=      -fsanitize=address
GLOBAL_LFLAGS                           +=      -lasan
endif

ifeq ($(USE_WEBP_LOADER),1)
GLOBAL_CFLAGS                           +=      -DUSE_WEBP_LOADER
endif

GLOBAL_CFLAGS                           +=      -g
 

 

appears to be all that is in the file.

 

Thank you again

Edited by Davemabster

Share this post


Link to post
Share on other sites

So whats happening when you do "make setup" call?

I see we have bug in makefile but want to deliver temporary solution for you.

Share this post


Link to post
Share on other sites

When I do make setup it appears all completes successfully. 

 

This are the last lines in terminal after running that

 

mkdir -p obj bin
mkdir -p obj system/bin system/bin/emod system/bin/fsys system/bin/loggers system/bin/services
mkdir -p unittests/obj unittests/bin
make[1]: Leaving directory '/home/dave/friendup/core'
make -C libs setup WEBSOCKETS_THREADS=1 USE_SELECT=0 NO_VALGRIND=0 CYGWIN_BUILD=0 FRIEND_PATH=/home/dave/friendup/build
make[1]: Entering directory '/home/dave/friendup/libs'
for dir in mysql sqlite echo notifications z image application; do \
        make -C $dir setup WEBSOCKETS_THREADS=1 USE_SELECT=0 NO_VALGRIND=0 CYGWIN_BUILD=0 FRIEND_PATH=/home/dave/friendup/build; \
done
make[2]: Entering directory '/home/dave/friendup/libs/mysql'
Prepare enviroment
mkdir -p obj bin
make[2]: Leaving directory '/home/dave/friendup/libs/mysql'
make[2]: Entering directory '/home/dave/friendup/libs/sqlite'
Prepare enviroment
mkdir -p obj bin bin/libs
make[2]: Leaving directory '/home/dave/friendup/libs/sqlite'
make[2]: Entering directory '/home/dave/friendup/libs/echo'
make[2]: *** No rule to make target 'setup'.  Stop.
make[2]: Leaving directory '/home/dave/friendup/libs/echo'
make[2]: Entering directory '/home/dave/friendup/libs/notifications'
Prepare enviroment
mkdir -p obj bin
make[2]: Leaving directory '/home/dave/friendup/libs/notifications'
make[2]: Entering directory '/home/dave/friendup/libs/z'
Prepare enviroment
mkdir -p obj bin
make[2]: Leaving directory '/home/dave/friendup/libs/z'
make[2]: Entering directory '/home/dave/friendup/libs/image'
Prepare enviroment
mkdir -p obj bin
make[2]: Leaving directory '/home/dave/friendup/libs/image'
make[2]: Entering directory '/home/dave/friendup/libs/application'
Prepare enviroment
mkdir -p obj bin
make[2]: Leaving directory '/home/dave/friendup/libs/application'
make[1]: Leaving directory '/home/dave/friendup/libs'
make -C authmods setup WEBSOCKETS_THREADS=1 USE_SELECT=0 NO_VALGRIND=0 CYGWIN_BUILD=0 FRIEND_PATH=/home/dave/friendup/build
make[1]: Entering directory '/home/dave/friendup/authmods'
mkdir -p ../build/authmods
for dir in fcdb php ; do \
        make -C $dir setup  WEBSOCKETS= USE_SELECT=0 NO_VALGRIND=0 CYGWIN_BUILD=0; \
done
make[2]: Entering directory '/home/dave/friendup/authmods/fcdb'
Prepare enviroment
mkdir -p obj bin
make[2]: Leaving directory '/home/dave/friendup/authmods/fcdb'
make[2]: Entering directory '/home/dave/friendup/authmods/php'
Prepare enviroment
mkdir -p obj bin
make[2]: Leaving directory '/home/dave/friendup/authmods/php'
make[1]: Leaving directory '/home/dave/friendup/authmods'
[email protected]:~/friendup$
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.


×
×
  • Create New...