ONLYOFFICE / CommunityServer

Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
http://www.onlyoffice.com
Apache License 2.0
2.75k stars 621 forks source link

Compile Issue on Ubuntu 22.04 #491

Open collab-smart opened 11 months ago

collab-smart commented 11 months ago

Hi @alexeybannov

Hope you are doing well. I am looking forward to hearing your opinion to fix the below outlined issue to execute CreateInstall.sh on ubuntu22.04. I have already installed mono to use msbuild.

When I try to make a deb package of community server using createinstall.sh on ubuntu22.04, I got an following error. /opt/CommunityServer/common/ASC.Data.Storage/GoogleCloud/GoogleCloudStorage.cs(181,36): error CS1705: Assembly 'Google.Cloud.Storage.V1' with identity 'Google.Cloud.Storage.V1, Version=3.5.0.0, Culture=neutral, PublicKeyToken=185c282632e132a0' uses 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Net.Http' with identity 'System.Net.Http, Version=4.1.0.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [/opt/CommunityServer/common/ASC.Data.Storage/ASC.Data.Storage.csproj] /opt/CommunityServer/common/ASC.Data.Storage/GoogleCloud/GoogleCloudStorage.cs(741,36): error CS1705: Assembly 'Google.Cloud.Storage.V1' with identity 'Google.Cloud.Storage.V1, Version=3.5.0.0, Culture=neutral, PublicKeyToken=185c282632e132a0' uses 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Net.Http' with identity 'System.Net.Http, Version=4.1.0.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [/opt/CommunityServer/common/ASC.Data.Storage/ASC.Data.Storage.csproj]

How to fix it? Please help me.

Carazyda commented 11 months ago

Hello @collab-smart Yes, we have a problem with compilation under Linux. This issue is related to required third party components and we are unable to fix it right now. At the moment, there is only the option to compile for Windows, and then create a deb package from these sources.

collab-smart commented 11 months ago

Hi @Carazyda

Thanks for your information.

My goal was to compile this project and build a docker file.

I saw docker-communityserver . Following up the Dockerfile in this repository, I was trying to compile the project and make a debian package. But as you said, I got lots of errors.

And I also tried to use the CreateAndInstall.sh under build directory to make a debian package. But I faced several issues.

Could you please give me detailed the process below outlined?

  1. Compilation process on Windows (the documentation seems to be a little old. That would be great if you can give me the latest document.

  2. How to make a Debian package from compilation result of Windows.

  3. How to build a Dockerfile after that.

I appreciate your kind help again.

Looking forward to hearing from you soon.

collab-smart commented 11 months ago

I faced the below issue after execution ManageServices.bat --install-all on windows server 2019. There is nothing errors during Build and Deploy using BuildAndDeploy.bat.

image Could you please help me to fix this?

Carazyda commented 11 months ago

I faced the below issue after execution ManageServices.bat --install-all on windows server 2019. There is nothing errors during Build and Deploy using BuildAndDeploy.bat.

image Could you please help me to fix this?

This issue will be fixed in version 12.6.0. Release soon.

collab-smart commented 11 months ago

Good to hear.

Hi @Carazyda

Thanks for your information.

My goal was to compile this project and build a docker file.

I saw docker-communityserver . Following up the Dockerfile in this repository, I was trying to compile the project and make a debian package. But as you said, I got lots of errors.

And I also tried to use the CreateAndInstall.sh under build directory to make a debian package. But I faced several issues.

Could you please give me detailed the process below outlined?

  1. Compilation process on Windows (the documentation seems to be a little old. That would be great if you can give me the latest document.
  2. How to make a Debian package from compilation result of Windows.
  3. How to build a Dockerfile after that.

I appreciate your kind help again.

Looking forward to hearing from you soon.

If you can clarify me about these processes, I would be happy.

Merry Christmas!

Thanks