compiling on suse

Discussion Forum for YPOPs!/Linux.


compiling on suse

Postby jerrydon on November 1st, 2005, 6:58 am

hi all,
any one of u compiled ypops on suse linux prof 9.3 or novell linux desktop 9. pls give me some tips to make ypops on these.

jerry don

jerrydon
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 2
Joined: November 1st, 2005, 6:44 am

YPops on Suse 10.0 -- it works!

Postby oscarlevin on January 15th, 2006, 1:13 pm

After many hours of fiddling, I finally got it to work. Here is what I did:

1) Downloaded the most recent source files: (ypops-src-0.8.3.zip) from http://fileforum.betanews.com/download/ ... 33572889/3.

2) Unzipped the archive, which gave me a folder called ypops.

3) Downloaded the mimepp-mac.tar.bz2 file from http://shyam.freewebpages.org/mimepp/ and moved it to ypops/lib/.

4) Extracted the archive, which gave me a folder called mimepp in ypops/lib/.

5) Opened the file "Makefile" in the folder ypops/src/. On the third line of code, it says "MIMEPP = ../lib/mimepp-1.3.3." I change this to "MIMEPP = ../lib/mimepp" to correspond with the folder mimepp that I got in step 4. I saved the changes to Makefile and closed it.

6) Opened a terminal in the ypops/src directory and typed "make". This gave me no errors.

7) Typed "su" and then my passward. Typed "make install." This gave me no errors.

8) Typed "cd /usr/local/ypops" and opened ypopsrc with "gedit ypopsrc". Here I made two changes: I changed the number after YPOPS_PORTNUMBER to 5058 and changed the number after YAHOO_SMTP_PORT to 5059. Then I saved and closed the file.

9) I followed the dirctions in the readme file (in ypops/src/) to start the program:

cd <value of RUN_DIR> (optional, but recommended)
YPOPS_LOG_DIR=<directory to hold log files>
YPOPS_CONFIG_DIR=<directory where ypopsrc is located>
export YPOPS_LOG_DIR YPOPS_CONFIG_DIR
[<value of INSTALL_DIR>/]ypops.sh &

Where <value of RUN_DIR> is /usr/local/ypops and <value of INSTALL_DIR> is /usr/local/bin (as I did not edit these in the makefile. This started the program in the terminal. At this point, I did a [Ctrl] + C to terminate the program, but I think I could have just left it running.

10) In thunderbird, I went to Account settings (under the edit menu) and, as I already had my accounts set up from windows, using Ypops there, only changed the port number from 110 to 5058. My settings are "localhost" under servername, my username in the corresponding box, and "never" selected under security settings.

11) In a terminal, I typed "ypops &", then went to thunderbird and hit get mail. It worked!

Hope this helps anyone who is struggling like I was. I should say that durring the course of all this, I did install various libraries (curl, xml, openssl) through Yast. I don't know if that is necessary, but it's worth a shot if you get stuck.

Best of luck.
Oscar
oscarlevin
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 2
Joined: January 15th, 2006, 12:43 pm

Thank you

Postby jerrydon on January 17th, 2006, 9:06 am

Thank You Oscar.
that was a wonderful detailed tip. thank you.


jerry don
jerrydon
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 2
Joined: November 1st, 2005, 6:44 am

Postby fbenites on July 18th, 2006, 3:10 pm

oscarlevin i was reading you step-by-step guide, although i´m running suse 10.0, and i got this output:

Code: Select all
servidor:/home/donkey/ypops/src # make
rm -f ypops
make mimelib;make libre_lib;make ypops
make[1]: Entering directory `/home/donkey/ypops/src'
cd ../lib/mimepp-1.3.3;make -f makefile-unix rel_lib;cd
/bin/sh: line 0: cd: ../lib/mimepp-1.3.3: No such file or directory
make[2]: Entering directory `/home/donkey/ypops/src'
make[2]: makefile-unix: No such file or directory
make[2]: *** No rule to make target `makefile-unix'.  Stop.
make[2]: Leaving directory `/home/donkey/ypops/src'
make[1]: Leaving directory `/home/donkey/ypops/src'
make[1]: Entering directory `/home/donkey/ypops/src'
cd ../lib/re_lib;make -f makefile.unix
make[2]: Entering directory `/home/donkey/ypops/lib/re_lib'
g++ -g  -I.  -c regexp.cpp -o regexp.o
g++ -g  -I.  -c regsub.cpp -o regsub.o
ar q libre_lib.a regexp.o regsub.o
ar: creating libre_lib.a
make[2]: Leaving directory `/home/donkey/ypops/lib/re_lib'
make[1]: Leaving directory `/home/donkey/ypops/src'
make[1]: Entering directory `/home/donkey/ypops/src'
rm -f DataHolder.o
g++ -g -fkeep-inline-functions -fno-default-inline -D_REENTRANT -I../lib/re_lib -I../lib/mimepp-1.3.3/src -I../lib/mimepp-1.3.3/examples/email -I/usr/local/include -I/usr/local/ssl/include -c DataHolder.cpp
rm -f Email.o
g++ -g -fkeep-inline-functions -fno-default-inline -D_REENTRANT -I../lib/re_lib -I../lib/mimepp-1.3.3/src -I../lib/mimepp-1.3.3/examples/email -I/usr/local/include -I/usr/local/ssl/include -c Email.cpp
rm -f HttpClient.o
g++ -g -fkeep-inline-functions -fno-default-inline -D_REENTRANT -I../lib/re_lib -I../lib/mimepp-1.3.3/src -I../lib/mimepp-1.3.3/examples/email -I/usr/local/include -I/usr/local/ssl/include -c HttpClient.cpp
In file included from HttpClient.cpp:49:
HttpClient.h:46:23: error: curl/curl.h: No such file or directory
HttpClient.h:47:24: error: curl/types.h: No such file or directory
HttpClient.h:48:23: error: curl/easy.h: No such file or directory
HttpClient.h:102: error: ISO C++ forbids declaration of ‘CURL’ with no type
HttpClient.h:102: error: expected ‘;’ before ‘*’ token
HttpClient.cpp: In destructor ‘virtual HttpClient::~HttpClient()’:
HttpClient.cpp:120: error: ‘curl_handle’ was not declared in this scope
HttpClient.cpp:121: error: ‘curl_easy_cleanup’ was not declared in this scope
HttpClient.cpp: In member function ‘BOOL HttpClient::AddHeader(const char*, const char*)’:
HttpClient.cpp:188: error: ‘curl_slist_append’ was not declared in this scope
HttpClient.cpp: In member function ‘BOOL HttpClient::DoPostInternal(const char*, const void*, HttpClientResponse&, bool)’:
HttpClient.cpp:244: error: ‘CURL’ was not declared in this scope
HttpClient.cpp:244: error: ‘curl_handle’ was not declared in this scope
HttpClient.cpp:245: error: ‘CURLcode’ was not declared in this scope
HttpClient.cpp:245: error: expected `;' before ‘res’
HttpClient.cpp:255: error: ‘curl_easy_init’ was not declared in this scope
HttpClient.cpp:260: error: ‘CURLOPT_URL’ was not declared in this scope
HttpClient.cpp:260: error: ‘curl_easy_setopt’ was not declared in this scope
HttpClient.cpp:263: error: ‘CURLOPT_WRITEFUNCTION’ was not declared in this scope
HttpClient.cpp:264: error: ‘CURLOPT_FILE’ was not declared in this scope
HttpClient.cpp:265: error: ‘CURLOPT_HEADERFUNCTION’ was not declared in this scope
HttpClient.cpp:266: error: ‘CURLOPT_WRITEHEADER’ was not declared in this scope
HttpClient.cpp:268: error: ‘CURLOPT_USERAGENT’ was not declared in this scope
HttpClient.cpp:269: error: ‘CURLOPT_HTTPHEADER’ was not declared in this scope
HttpClient.cpp:270: error: ‘CURLOPT_FOLLOWLOCATION’ was not declared in this scope
HttpClient.cpp:271: error: ‘CURLOPT_MAXREDIRS’ was not declared in this scope
HttpClient.cpp:278: error: ‘CURLOPT_SSLENGINE_DEFAULT’ was not declared in this scope
HttpClient.cpp:279: error: ‘CURLOPT_SSL_VERIFYPEER’ was not declared in this scope
HttpClient.cpp:280: error: ‘CURLOPT_SSL_VERIFYHOST’ was not declared in this scope
HttpClient.cpp:281: error: ‘CURLOPT_NOPROGRESS’ was not declared in this scope
HttpClient.cpp:282: error: ‘CURLOPT_NOSIGNAL’ was not declared in this scope
HttpClient.cpp:287: error: ‘CURLOPT_HTTPPOST’ was not declared in this scope
HttpClient.cpp:291: error: ‘CURLOPT_POSTFIELDS’ was not declared in this scope
HttpClient.cpp:299: error: ‘CURLOPT_PROXY’ was not declared in this scope
HttpClient.cpp:305: error: ‘CURLOPT_PROXY’ was not declared in this scope
HttpClient.cpp:311: error: ‘CURLOPT_PROXYUSERPWD’ was not declared in this scope
HttpClient.cpp:315: error: ‘res’ was not declared in this scope
HttpClient.cpp:315: error: ‘curl_easy_perform’ was not declared in this scope
HttpClient.cpp:318: error: ‘CURLINFO_EFFECTIVE_URL’ was not declared in this scope
HttpClient.cpp:318: error: ‘curl_easy_getinfo’ was not declared in this scope
HttpClient.cpp:323: error: ‘curl_easy_cleanup’ was not declared in this scope
HttpClient.cpp:328: error: ‘CURLE_OK’ was not declared in this scope
HttpClient.cpp:331: error: ‘curl_easy_strerror’ was not declared in this scope
HttpClient.cpp:334: error: ‘CURLE_OK’ was not declared in this scope
HttpClient.cpp: In member function ‘int HttpClient::DoGetInternal(const char*, HttpClientResponse&)’:
HttpClient.cpp:380: error: ‘CURLcode’ was not declared in this scope
HttpClient.cpp:380: error: expected `;' before ‘res’
HttpClient.cpp:392: error: ‘curl_handle’ was not declared in this scope
HttpClient.cpp:392: error: ‘CURLOPT_URL’ was not declared in this scope
HttpClient.cpp:392: error: ‘curl_easy_setopt’ was not declared in this scope
HttpClient.cpp:394: error: ‘CURLOPT_FILE’ was not declared in this scope
HttpClient.cpp:395: error: ‘CURLOPT_WRITEHEADER’ was not declared in this scope
HttpClient.cpp:396: error: ‘CURLOPT_HTTPHEADER’ was not declared in this scope
HttpClient.cpp:403: error: ‘CURLOPT_PROXY’ was not declared in this scope
HttpClient.cpp:409: error: ‘CURLOPT_PROXY’ was not declared in this scope
HttpClient.cpp:415: error: ‘CURLOPT_PROXYUSERPWD’ was not declared in this scope
HttpClient.cpp:419: error: ‘res’ was not declared in this scope
HttpClient.cpp:419: error: ‘curl_easy_perform’ was not declared in this scope
HttpClient.cpp:422: error: ‘CURLINFO_EFFECTIVE_URL’ was not declared in this scope
HttpClient.cpp:422: error: ‘curl_easy_getinfo’ was not declared in this scope
HttpClient.cpp:427: error: ‘CURLINFO_CONTENT_TYPE’ was not declared in this scope
HttpClient.cpp:435: error: ‘CURLE_OK’ was not declared in this scope
HttpClient.cpp:438: error: ‘curl_easy_strerror’ was not declared in this scope
HttpClient.cpp:441: error: ‘CURLE_OK’ was not declared in this scope
HttpClient.cpp: In member function ‘void HttpClient::Reset()’:
HttpClient.cpp:463: error: ‘curl_slist_free_all’ was not declared in this scope
HttpClient.cpp: In member function ‘void HttpClient::FullReset()’:
HttpClient.cpp:543: error: ‘curl_handle’ was not declared in this scope
HttpClient.cpp:544: error: ‘curl_easy_cleanup’ was not declared in this scope
HttpClient.cpp: In member function ‘void HttpClient::Initialize()’:
HttpClient.cpp:558: error: ‘curl_handle’ was not declared in this scope
HttpClient.cpp:558: error: ‘curl_easy_init’ was not declared in this scope
HttpClient.cpp:560: error: ‘CURLOPT_WRITEFUNCTION’ was not declared in this scope
HttpClient.cpp:560: error: ‘curl_easy_setopt’ was not declared in this scope
HttpClient.cpp:561: error: ‘CURLOPT_HEADERFUNCTION’ was not declared in this scope
HttpClient.cpp:562: error: ‘CURLOPT_USERAGENT’ was not declared in this scope
HttpClient.cpp:563: error: ‘CURLOPT_FOLLOWLOCATION’ was not declared in this scope
HttpClient.cpp:564: error: ‘CURLOPT_MAXREDIRS’ was not declared in this scope
HttpClient.cpp:567: error: ‘CURLOPT_COOKIEFILE’ was not declared in this scope
HttpClient.cpp:570: error: ‘CURLOPT_SSLENGINE_DEFAULT’ was not declared in this scope
HttpClient.cpp:571: error: ‘CURLOPT_SSL_VERIFYPEER’ was not declared in this scope
HttpClient.cpp:572: error: ‘CURLOPT_SSL_VERIFYHOST’ was not declared in this scope
HttpClient.cpp:573: error: ‘CURLOPT_NOPROGRESS’ was not declared in this scope
HttpClient.cpp:574: error: ‘CURLOPT_NOSIGNAL’ was not declared in this scope
make[1]: *** [HttpClient.o] Error 1
make[1]: Leaving directory `/home/donkey/ypops/src'
make: *** [all] Error 2


Do you know what it might be? Thanks in advance.
fbenites
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 3
Joined: April 13th, 2006, 9:53 am

Postby oscarlevin on July 18th, 2006, 7:17 pm

Looks like you might be missing the curl libraries. Try installing those with YAST. To be honest, it has been a while since I have had to do deal with this. What I do now is run the windows version of YPops through wine. It works great. (I was never able to get it to work on the new 10.1, 64bit).

Hope this helps,
Oscar.
oscarlevin
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 2
Joined: January 15th, 2006, 12:43 pm

Postby fbenites on July 18th, 2006, 7:38 pm

sorry, i just saw the curl problem after i posted. I installed it but it give me other problems. But i´m curious abou you running in wine; i tried, but i althought it´s running, i couldn´t access it, because i run a mac computer at home and leave ypops in a linux machine. Do you use ypops in your local machine or another machine?

btw, i couldn´t compile in mac os either..

Thanks oscar!
fbenites
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 3
Joined: April 13th, 2006, 9:53 am

It works on SuSE 10.1 following Oscars advice

Postby casualprogrammer on November 21st, 2006, 3:41 pm

Thanks Oscar,

for providing a working howto.

I did few things differently:

Get the sources from CVS, which is easier for me than getting the tarball.

Had to do the "make" step as root as well, because the compiler would issue warnings about some variable redefined.

ypops has to be run as root also, otherwise it fails due to lack of rights. ( will probably start it at boot time thru rc.local ).

Opened an account in Evolution, there is no means to set the port for POP / SMTP so I tried to enter the server as 127.0.0.1:POP-port and 127.0.0.1:SMTP-port, this works nicely.

Thanks again!

Casual
casualprogrammer
YPOPs! Rookie
YPOPs! Rookie
 
Posts: 15
Joined: November 21st, 2006, 3:30 pm


Return to YPOPs!/Linux

Who is online

Users browsing this forum: No registered users and 0 guests

paw prints
SourceForge