clone ssocr source code and build in my GCP Ubuntu but failed after make command





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I ran the code below



sudo apt-get update
sudo apt-get install libx11-dev
sudo apt-get install libimlib2-dev


and paste "make" in my ubuntu on GCP but requested to install make package so I use the command



sudo apt-get install build-essential


and after that I use make command in ssocr dir and an error message below:



make: imlib2-config: Command not found   
make: imlib2-config: Command not found
cc -D_FORTIFY_SOURCE=2 -Wall -W -Wextra -pedantic -Werror -pedantic-errors -fstack-protector-all -O3 -c -o ssocr.o ssocr.c
ssocr.c:21:53: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'ssocr.o' failed
make: *** [ssocr.o] Error 1


So please comment how to fix it.










share|improve this question




















  • 1





    Did the first sudo apt-get install command complete without errors? What is your Ubuntu version?

    – steeldriver
    Feb 11 at 13:03











  • It looked so and only informed me some memory space will be added and asked me [Y/n]. But one thing I did noted was once Y input it showed "Abort". My ubuntu was 16.04.3. Should I run 'sudo apt-get install' again? @N0bert

    – Michael C.H. Wang
    Feb 11 at 20:20













  • I run sudo apt-get install libimlib2-dev again and it works now.

    – Michael C.H. Wang
    Feb 11 at 20:32


















0















I ran the code below



sudo apt-get update
sudo apt-get install libx11-dev
sudo apt-get install libimlib2-dev


and paste "make" in my ubuntu on GCP but requested to install make package so I use the command



sudo apt-get install build-essential


and after that I use make command in ssocr dir and an error message below:



make: imlib2-config: Command not found   
make: imlib2-config: Command not found
cc -D_FORTIFY_SOURCE=2 -Wall -W -Wextra -pedantic -Werror -pedantic-errors -fstack-protector-all -O3 -c -o ssocr.o ssocr.c
ssocr.c:21:53: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'ssocr.o' failed
make: *** [ssocr.o] Error 1


So please comment how to fix it.










share|improve this question




















  • 1





    Did the first sudo apt-get install command complete without errors? What is your Ubuntu version?

    – steeldriver
    Feb 11 at 13:03











  • It looked so and only informed me some memory space will be added and asked me [Y/n]. But one thing I did noted was once Y input it showed "Abort". My ubuntu was 16.04.3. Should I run 'sudo apt-get install' again? @N0bert

    – Michael C.H. Wang
    Feb 11 at 20:20













  • I run sudo apt-get install libimlib2-dev again and it works now.

    – Michael C.H. Wang
    Feb 11 at 20:32














0












0








0








I ran the code below



sudo apt-get update
sudo apt-get install libx11-dev
sudo apt-get install libimlib2-dev


and paste "make" in my ubuntu on GCP but requested to install make package so I use the command



sudo apt-get install build-essential


and after that I use make command in ssocr dir and an error message below:



make: imlib2-config: Command not found   
make: imlib2-config: Command not found
cc -D_FORTIFY_SOURCE=2 -Wall -W -Wextra -pedantic -Werror -pedantic-errors -fstack-protector-all -O3 -c -o ssocr.o ssocr.c
ssocr.c:21:53: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'ssocr.o' failed
make: *** [ssocr.o] Error 1


So please comment how to fix it.










share|improve this question
















I ran the code below



sudo apt-get update
sudo apt-get install libx11-dev
sudo apt-get install libimlib2-dev


and paste "make" in my ubuntu on GCP but requested to install make package so I use the command



sudo apt-get install build-essential


and after that I use make command in ssocr dir and an error message below:



make: imlib2-config: Command not found   
make: imlib2-config: Command not found
cc -D_FORTIFY_SOURCE=2 -Wall -W -Wextra -pedantic -Werror -pedantic-errors -fstack-protector-all -O3 -c -o ssocr.o ssocr.c
ssocr.c:21:53: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'ssocr.o' failed
make: *** [ssocr.o] Error 1


So please comment how to fix it.







git






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 11 at 20:13









N0rbert

25.4k853121




25.4k853121










asked Feb 11 at 9:58









Michael C.H. WangMichael C.H. Wang

1




1








  • 1





    Did the first sudo apt-get install command complete without errors? What is your Ubuntu version?

    – steeldriver
    Feb 11 at 13:03











  • It looked so and only informed me some memory space will be added and asked me [Y/n]. But one thing I did noted was once Y input it showed "Abort". My ubuntu was 16.04.3. Should I run 'sudo apt-get install' again? @N0bert

    – Michael C.H. Wang
    Feb 11 at 20:20













  • I run sudo apt-get install libimlib2-dev again and it works now.

    – Michael C.H. Wang
    Feb 11 at 20:32














  • 1





    Did the first sudo apt-get install command complete without errors? What is your Ubuntu version?

    – steeldriver
    Feb 11 at 13:03











  • It looked so and only informed me some memory space will be added and asked me [Y/n]. But one thing I did noted was once Y input it showed "Abort". My ubuntu was 16.04.3. Should I run 'sudo apt-get install' again? @N0bert

    – Michael C.H. Wang
    Feb 11 at 20:20













  • I run sudo apt-get install libimlib2-dev again and it works now.

    – Michael C.H. Wang
    Feb 11 at 20:32








1




1





Did the first sudo apt-get install command complete without errors? What is your Ubuntu version?

– steeldriver
Feb 11 at 13:03





Did the first sudo apt-get install command complete without errors? What is your Ubuntu version?

– steeldriver
Feb 11 at 13:03













It looked so and only informed me some memory space will be added and asked me [Y/n]. But one thing I did noted was once Y input it showed "Abort". My ubuntu was 16.04.3. Should I run 'sudo apt-get install' again? @N0bert

– Michael C.H. Wang
Feb 11 at 20:20







It looked so and only informed me some memory space will be added and asked me [Y/n]. But one thing I did noted was once Y input it showed "Abort". My ubuntu was 16.04.3. Should I run 'sudo apt-get install' again? @N0bert

– Michael C.H. Wang
Feb 11 at 20:20















I run sudo apt-get install libimlib2-dev again and it works now.

– Michael C.H. Wang
Feb 11 at 20:32





I run sudo apt-get install libimlib2-dev again and it works now.

– Michael C.H. Wang
Feb 11 at 20:32










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1117328%2fclone-ssocr-source-code-and-build-in-my-gcp-ubuntu-but-failed-after-make-command%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1117328%2fclone-ssocr-source-code-and-build-in-my-gcp-ubuntu-but-failed-after-make-command%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

張江高科駅