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

Compile source code #1

Closed
NestorAlbelo opened this issue Aug 11, 2015 · 9 comments
Closed

Compile source code #1

NestorAlbelo opened this issue Aug 11, 2015 · 9 comments

Comments

@NestorAlbelo
Copy link

Hi,
I am trying to compile the source code but I do not know exactly how to do that. I have tried to execute "/packaging/source/build.sh" script but it fails. I am using Ubuntu 15.04 and I have already install all the dependencies, that are needed.

Thanks =D

@robhagemans
Copy link
Owner

There is no need to compile, just run the pcbasic file (it's executable python file)

Nestor Albelo Jorge notifications@github.com wrote:

Hi,
I am trying to compile the source code but I do not know exactly how to do that. I have tried to execute "/packaging/source/build.sh" script but it fails. I am using Ubuntu 15.04 and I have already install all the dependencies, that are needed.

Thanks =D


Reply to this email directly or view it on GitHub.

@NestorAlbelo
Copy link
Author

Sorry i mean to package it.
When I try to run pcbasic file it shows me this:

Traceback (most recent call last):
File "./pcbasic", line 21, in
import ansipipe
ImportError: No module named ansipipe

@robhagemans
Copy link
Owner

Why would you need to package it?

Nestor Albelo Jorge notifications@github.com wrote:

Sorry i mean to package it


Reply to this email directly or view it on GitHub.

@robhagemans
Copy link
Owner

It's easiest to just run the program directly from the source directory, the packaging is just intended for easy distribution.

However, if you really do want to package you would need to run packaging/prepare.sh and then packaging/source/build.sh .

Rob Hagemans robhagemans@yahoo.co.uk wrote:

Why would you need to package it?

@robhagemans
Copy link
Owner

Sorry, just noted the stack trace about ansipipe, which somehow only shows on github, not in the mail I got. Looks like you're missing the ansipipe directory, which is a git submodule.

Ansipipe is a workaround for Windows and really does nothing on Linux, so you could alternatively comment out all lines referring to ansipipe.

Rob

Rob Hagemans robhagemans@yahoo.co.uk wrote:

It's easiest to just run the program directly from the source directory, the packaging is just intended for easy distribution.

However, if you really do want to package you would need to run packaging/prepare.sh and then packaging/source/build.sh .

@NestorAlbelo
Copy link
Author

Hi!!
I really appreciate your answers I will try it now, and I will let you know what I get
Thanks =D

@robhagemans
Copy link
Owner

If you got the source through git clone, you need to run these two commands to get ansipipe:

git submodule init
git submodule update

Hope this solves your problem, let me know how it goes.

Rob

Rob Hagemans robhagemans@yahoo.co.uk wrote:

Sorry, just noted the stack trace about ansipipe, which somehow only shows on github, not in the mail I got. Looks like you're missing the ansipipe directory, which is a git submodule.

Ansipipe is a workaround for Windows and really does nothing on Linux, so you could alternatively comment out all lines referring to ansipipe.

Rob

@NestorAlbelo
Copy link
Author

Hey I have just tried adding the submodule and it works fine, thank you for answering so fast

Nestor

@robhagemans
Copy link
Owner

You're welcome, have fun using PC-BASIC!

Nestor Albelo Jorge notifications@github.com wrote:

Hey I have just tried adding the submodule and it works fine, thank you for answering so fast

Nestor


Reply to this email directly or view it on GitHub.

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

2 participants