Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to install #156

Open
lisawebcoder opened this issue Apr 26, 2020 · 22 comments
Open

how to install #156

lisawebcoder opened this issue Apr 26, 2020 · 22 comments

Comments

@lisawebcoder
Copy link

hello i am win 10 pro
i have docker toolbox becuz my hypervisor for some reason stopped working, somthin to do with the processor
so i created an ubuntu conatiner
in there i git clone the repo
then i am in a folder called X that contains the folder open-soruce-search-engine
from folder X i run sudo dpkg -i open-soruce-search-engine but i receive the error
dpkg: error: archive 'open-source-search-engine' is not a regular file

Lisa
how do i solve this plz and thank you

@lisawebcoder
Copy link
Author

hello i tried all the different methods to install and run gigablast but i always fail and get errors
i also tried the docker image and that too fails to load the web page

does any one have the correct updated steps to run?
Lisa

@lisawebcoder
Copy link
Author

the make command gets to the final stage where it seems all built but there is still eroors
that i dont know the fix
i had to fix a small throw line error in Mem.cpp then i found the fix was small
but this one i dont understand or can find so far an online fix

Lisa

g++ -D_REENTRANT_ -D_CHECK_FORMAT_STRING_ -I. -g -Wall -pipe -fno-stack-protector -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -DPTHREADS -Wno-unused-but-set-variable -o gb main.o UdpSlot.o Rebalance.o Msg13.o Mime.o PageGet.o PageHosts.o PageParser.o PageInject.o PagePerf.o PageReindex.o PageResults.o PageAddUrl.o PageRoot.o PageSockets.o PageStats.o PageTitledb.o PageAddColl.o hash.o Domains.o Collectiondb.o linkspam.o ip.o sort.o fctypes.o XmlNode.o XmlDoc.o Xml.o Words.o Url.o UdpServer.o Threads.o Titledb.o HashTable.o TcpServer.o Summary.o Spider.o Catdb.o RdbTree.o RdbScan.o RdbMerge.o RdbMap.o RdbMem.o RdbBuckets.o RdbList.o RdbDump.o RdbCache.o Rdb.o RdbBase.o Query.o Phrases.o Multicast.o Msg9b.o Msg8b.o Msg5.o Msg39.o Msg3.o Msg22.o Msg20.o Msg2.o Msg1.o Msg0.o Mem.o Matches.o Loop.o Log.o Lang.o Indexdb.o Posdb.o Clusterdb.o IndexList.o Revdb.o HttpServer.o HttpRequest.o HttpMime.o Hostdb.o Highlight.o File.o Errno.o Entities.o Dns.o Dir.o Conf.o Bits.o Stats.o BigFile.o Msg17.o Speller.o PingServer.o StopWords.o TopTree.o Parms.o Pages.o Unicode.o iana_charset.o Iso8859.o SearchInput.o Categories.o Msg2a.o PageCatdb.o PageDirectory.o SafeBuf.o Datedb.o UCNormalizer.o UCPropTable.o UnicodeProperties.o Pops.o Title.o Pos.o LangList.o Profiler.o AutoBan.o Msg3a.o HashTableT.o HashTableX.o PageLogView.o Msg1f.o Blaster.o MsgC.o PageSpam.o Proxy.o PageThreads.o Linkdb.o matches2.o LanguageIdentifier.o Language.o Repair.o Process.o Abbreviations.o RequestTable.o TuringTest.o Msg51.o geo_ip_table.o Msg40.o Msg4.o SpiderProxy.o LanguagePages.o Statsdb.o PageStatsdb.o PostQueryRerank.o Msge0.o Msge1.o CountryCode.o DailyMerge.o CatRec.o Tagdb.o Users.o Images.o Wiki.o Wiktionary.o Scraper.o Dates.o Sections.o SiteGetter.o Syncdb.o qa.o Placedb.o Address.o Test.o GeoIP.o GeoIPCity.o Synonyms.o Cachedb.o Monitordb.o dlstubs.o PageCrawlBot.o Json.o PageBasic.o Punycode.o Version.o -lm -lpthread -lssl -lcrypto ./libiconv64.a ./libz64.a
/usr/bin/ld: ./libiconv64.a(iconv.o): relocation R_X86_64_32S against .rodata' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ./libiconv64.a(localcharset.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: ./libz64.a(deflate.o): relocation R_X86_64_32S against hidden symbol zcalloc' can not be used when making a PIE object /usr/bin/ld: ./libz64.a(inflate.o): relocation R_X86_64_32S against hidden symbol zcalloc' can not be used when making a PIE object
/usr/bin/ld: ./libz64.a(inftrees.o): relocation R_X86_64_32S against .rodata' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ./libz64.a(trees.o): relocation R_X86_64_32S against .data' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: ./libz64.a(zutil.o): relocation R_X86_64_32 against .rodata' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ./libz64.a(crc32.o): relocation R_X86_64_32 against .rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: ./libz64.a(inffast.o): relocation R_X86_64_32S against .rodata' can not be used when making a PIE object; recompile with -fPIC TcpServer.o: In function TcpServer::reset()':
/home/robert/Desktop/gigablast/open-source-search-engine-master/TcpServer.cpp:61: undefined reference to ERR_free_strings' TcpServer.o: In function TcpServer::init(void ()(TcpSocket), int ()(char, int, TcpSocket*), int ()(TcpSocket), short, int*, bool)':
/home/robert/Desktop/gigablast/open-source-search-engine-master/TcpServer.cpp:206: undefined reference to SSL_library_init' /home/robert/Desktop/gigablast/open-source-search-engine-master/TcpServer.cpp:207: undefined reference to SSL_load_error_strings'
/home/robert/Desktop/gigablast/open-source-search-engine-master/TcpServer.cpp:211: undefined reference to `SSLv23_method'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:196: recipe for target 'gb' failed
make: *** [gb] Error 1

@onlyjob
Copy link
Contributor

onlyjob commented May 5, 2021

The FTBFS should be fixed by e18d239 and few other recent commits.

How exactly did you fix Mem.cpp? It is a problem #164 that should be properly fixed as per #171.

@lisawebcoder
Copy link
Author

hey whats up
thanx for replying
i dont remember off hand what i did to fix mem.cpp but it was an easy fix as per my above comment
i havet been debugging in ubuntu 16 or 18 or 20 for awhile since i got it all to work in ubuntu14
when i get a chance i will search my personal commits notes and i should find what i did to fix mem.cpp
i dont remeber the error message do you?
it would help me out to recall how i fixed it

i will read your link reagrding FTBFS which i dont understand what you mean
ok when im free i will come back with any info

kind regards

@onlyjob
Copy link
Contributor

onlyjob commented May 5, 2021

FTBFS - Failure To Build From Source - a common abbreviation.

@lisawebcoder
Copy link
Author

hello i did not still havea chance to see how i fixed mem.cpp but it seems you have commits that fixed it
but your link for the build from source was deleted

@lisawebcoder
Copy link
Author

ok i dont have the eaxct fix code but i was readig my notes about its just a catch and throw error fix
if you really need the code bug fix when i find it on my win 10 machine i will post here

regards

@lisawebcoder
Copy link
Author

hello i was not able to replicate the error for the mem.cpp
it was some throw error that needed to be updated to C++ current version if i remember
i am able to run the code only on ubuntu 14

i tried to run on 16 and thats were i once got the mem.cpp issue which i dont get anymore

but i get this issue

./libiconv.a no such fiel or driectory

i cant solve this

@lisawebcoder
Copy link
Author

lisawebcoder commented May 7, 2021

this should be the fix for your original mem.cpp error

Are you using C++11 or later?

The original operator new() declarations in C++98
--IT MEANS REPLACE THESE LINES
throwing:
void* operator new (std::size_t size) throw (std::bad_alloc);

nothrow:
void* operator new (std::size_t size, const std::nothrow_t& nothrow_value) throw();

placement:
void* operator new (std::size_t size, void* ptr) throw();
--REPLACE THE LINES ABOVE
Have been changed in C++11 to use noexcept keyword:
--WITH THESE LINES
throwing:
void* operator new (std::size_t size);

nothrow:
void* operator new (std::size_t size, const std::nothrow_t& nothrow_value) noexcept;

placement:
void* operator new (std::size_t size, void* ptr) noexcept;

--WITH THESE LINES ABOVE

@onlyjob
Copy link
Contributor

onlyjob commented May 9, 2021

./libiconv.a no such fiel or driectory

Are you building on 32bit architecture? I think d9fe286 fixes this problem.

@lisawebcoder
Copy link
Author

hello
hey yes i am on a vmare ubunutu 16 virtual machine and its 32 bit
is that link a fix? i will try it
i will also try to see if i have other VMs with 64bit OS

@lisawebcoder
Copy link
Author

hello

i now get this error
i dont know if i should comment out those lines?
or try a 64bit archtiture

Unicode.o: In function gbiconv_open(char*, char*)': /home/r/Desktop/osse/open-source-search-engine-master/Unicode.cpp:64: undefined reference to libiconv'
/home/r/Desktop/osse/open-source-search-engine-master/Unicode.cpp:38: undefined reference to libiconv_open' Unicode.o: In function gbiconv_reset()':
/home/r/Desktop/osse/open-source-search-engine-master/Unicode.cpp:87: undefined reference to libiconv_close' Unicode.o: In function ucToAny(char*, int, char*, char*, int, char*, int, int)':
/home/r/Desktop/osse/open-source-search-engine-master/Unicode.cpp:430: undefined reference to libiconv' /home/r/Desktop/osse/open-source-search-engine-master/Unicode.cpp:407: undefined reference to libiconv'
Unicode.o: In function latin1ToUtf8(char*, int, char*, int)': /home/r/Desktop/osse/open-source-search-engine-master/Unicode.cpp:1255: undefined reference to libiconv'

@lisawebcoder
Copy link
Author

hello

i tried the github pull/download souce code and then added your make file fix and the code compiles without errors
now just trying to run
./gb -d to see if it actyally builds and runs the software

seems the wget source code has some bugs

@lisawebcoder
Copy link
Author

hello

i get a log file at log000 i have to check but for some reason ./gb -d just hangs
and no webpage at localhost:8000

not sure if it doesnt run on 32bit but with your make file fix and using the github clone source code it complies with no errors

@lisawebcoder
Copy link
Author

hello

i ran make32 and that gives me missing files errors
then i ran make without -d and i see the real time log on the cli
and it says running on host 0
but no webpage at localhost:8000
maybe not enuff ram?

@lisawebcoder
Copy link
Author

ok it works

@lisawebcoder
Copy link
Author

XmlDoc.h:63:10: fatal error: zlib.h: No such file or directory
63 | #include "zlib.h" // Z_OK

hello how you bben doing
i am trying to run build from source on ubuntu 18 or later but i get the above error

as far as i know its ubuntu 18 64bit

well thxz

@lisawebcoder
Copy link
Author

this solved it

sudo apt-get install libz-dev

but not sure if it fully builds yet

@lisawebcoder
Copy link
Author

lisawebcoder commented May 23, 2021

i got it to build with no errors on ubuntu 18
but i get segmentation fault (core dumped)
im on goormide
its a new platform im not sure if i need an ip address to deploy

do you know?

@tcreek
Copy link

tcreek commented May 16, 2023

i got it to build with no errors on ubuntu 18 but i get segmentation fault (core dumped) im on goormide its a new platform im not sure if i need an ip address to deploy

do you know?

Did you ever get this to work without the core dump?

@lisawebcoder
Copy link
Author

lisawebcoder commented May 17, 2023

hello how are you
its been quite awhile since i run this app in my vm
would have to check my docs
when i get to it i will update
best of luck for now
UPDATE
ok i saw your full message was relating to actually my message
well its not on this thread but i did actually get it to run on ubuntu20 a while ago
its in another thread question i dont recall where and it has my steps
but as mentioned i am not workng on the source code for a long time
i had been using the API and it was awesome but gigablast.com is not online
kindly update if there is updates
best regards

@tcreek
Copy link

tcreek commented May 17, 2023

hello how are you its been quite awhile since i run this app in my vm would have to check my docs when i get to it i will update best of luck for now UPDATE ok i saw your full message was relating to actually my message well its not on this thread but i did actually get it to run on ubuntu20 a while ago its in another thread question i dont recall where and it has my steps but as mentioned i am not workng on the source code for a long time i had been using the API and it was awesome but gigablast.com is not online kindly update if there is updates best regards

Unbuntu 20 was released October 2020.

It seems you did not participate in many threads since then. However, I do see you made this comment last year:

#187 (comment)

You did mention "I will try running it next week and post my steps here if it still works" but you never did

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@onlyjob @tcreek @lisawebcoder and others